| Total Complexity | 6 |
| Total Lines | 57 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class ConnectionTest extends AbstractTest |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var \UnitTester |
||
|
|
|||
| 16 | */ |
||
| 17 | protected $tester; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var Connection |
||
| 21 | */ |
||
| 22 | protected $connection; |
||
| 23 | |||
| 24 | public function testNewAdapter() |
||
| 25 | { |
||
| 26 | static::assertInstanceOf( |
||
| 27 | \Nip\Database\Adapters\MySQLi::class, |
||
| 28 | $this->connection->newAdapter('MySQLi') |
||
| 29 | ); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function testGetAdapterClass() |
||
| 33 | { |
||
| 34 | static::assertEquals( |
||
| 35 | '\Nip\Database\Adapters\MySQLi', |
||
| 36 | $this->connection->getAdapterClass('MySQLi') |
||
| 37 | ); |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return array |
||
| 42 | */ |
||
| 43 | public function newQueryProvider() |
||
| 44 | { |
||
| 45 | $types = ['select', 'insert', 'delete']; |
||
| 46 | $return = []; |
||
| 47 | foreach ($types as $type) { |
||
| 48 | $return[] = [$type, 'Nip\Database\Query\\' . ucfirst($type)]; |
||
| 49 | } |
||
| 50 | return $return; |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @dataProvider newQueryProvider |
||
| 55 | * |
||
| 56 | * @param $type |
||
| 57 | * @param $class |
||
| 58 | */ |
||
| 59 | public function testNewQuery($type, $class) |
||
| 63 | } |
||
| 64 | |||
| 65 | protected function setUp(): void |
||
| 69 | } |
||
| 70 | } |
||
| 71 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths