-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Expand file tree
/
Copy pathAbstractStatementTestCase.php
More file actions
38 lines (32 loc) · 968 Bytes
/
Copy pathAbstractStatementTestCase.php
File metadata and controls
38 lines (32 loc) · 968 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/**
* This file is part of the Phalcon Framework.
*
* (c) Phalcon Team <team@phalcon.io>
*
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Phalcon\Tests;
use Phalcon\DataMapper\Statement\Bind;
use ReflectionClass;
abstract class AbstractStatementTestCase extends AbstractDatabaseTestCase
{
/**
* @return void
*/
protected function setUp(): void
{
/**
* This is here to ensure that the tests run fine either individually
* or as a suite, since the static instance count will increase
* differently depending on how the test is run (suite/on its own)
*/
parent::setUp();
$bind = new ReflectionClass(Bind::class);
$property = $bind->getProperty('instanceCount');
$property->setAccessible(true);
$property->setValue(0);
}
}