| Total Complexity | 6 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class SimpleArrayTest extends DbalTestCase |
||
| 10 | { |
||
| 11 | /** @var AbstractPlatform */ |
||
|
|
|||
| 12 | protected $_platform; |
||
| 13 | |||
| 14 | /** @var Type */ |
||
| 15 | protected $_type; |
||
| 16 | |||
| 17 | protected function setUp() |
||
| 18 | { |
||
| 19 | $this->_platform = new MockPlatform(); |
||
| 20 | $this->_type = Type::getType('simple_array'); |
||
| 21 | } |
||
| 22 | |||
| 23 | public function testEmptyArrayConvertsToNullToDatabaseValue() |
||
| 24 | { |
||
| 25 | self::assertInternalType( |
||
| 26 | 'null', |
||
| 27 | $this->_type->convertToDatabaseValue([], $this->_platform) |
||
| 28 | ); |
||
| 29 | } |
||
| 30 | |||
| 31 | public function testArrayConvertsArrayToDatabaseValue() |
||
| 32 | { |
||
| 33 | self::assertInternalType( |
||
| 34 | 'string', |
||
| 35 | $this->_type->convertToDatabaseValue(['one', 'two'], $this->_platform) |
||
| 36 | ); |
||
| 37 | } |
||
| 38 | |||
| 39 | public function testArrayConvertsStringToPHPValue() |
||
| 44 | ); |
||
| 45 | } |
||
| 46 | |||
| 47 | public function testNullConvertsToPHPValue() |
||
| 48 | { |
||
| 49 | self::assertInternalType( |
||
| 50 | 'array', |
||
| 51 | $this->_type->convertToPHPValue(null, $this->_platform) |
||
| 52 | ); |
||
| 53 | } |
||
| 54 | |||
| 55 | public function testArrayPassesThroughArrayForConvertToPHPValue() |
||
| 60 | ); |
||
| 61 | } |
||
| 62 | } |
||
| 63 |
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