File tree Expand file tree Collapse file tree 4 files changed +7
-9
lines changed Expand file tree Collapse file tree 4 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 77 tests :
88 override :
99 -
10- command : vendor/bin/phpunit --coverage-clover=build/clover.xml
10+ command : XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-clover=build/clover.xml
1111 coverage :
1212 file : build/clover.xml
1313 format : clover
Original file line number Diff line number Diff line change 44 - 7.1
55 - 7.2
66 - 7.3
7+ - 8.0
78 - nightly
89
910sudo : false
Original file line number Diff line number Diff line change 1111 }
1212 ],
1313 "require" : {
14- "php" : " ^7.1" ,
14+ "php" : " ^7.1 || ^8.0 " ,
1515 "paillechat/php-enum" : " ^1.2 || ^2.1" ,
1616 "symfony/http-kernel" : " ^3.4 || ^4.0 || ^5.0" ,
1717 "symfony/dependency-injection" : " ^3.4 || ^4.0 || ^5.0" ,
1818 "symfony/config" : " ^3.4 || ^4.0 || ^5.0" ,
1919 "doctrine/dbal" : " ^2.4"
2020 },
2121 "require-dev" : {
22- "phpunit/phpunit" : " ^7.0" ,
22+ "phpunit/phpunit" : " ^7.0 || ^8.0 || ^9.0 " ,
2323 "symfony/yaml" : " ^3.4 || ^4.0 || ^5.0"
2424 },
2525 "autoload" : {
Original file line number Diff line number Diff line change 33namespace Lamoda \EnumBundle \Tests \Unit \DBAL ;
44
55use Doctrine \DBAL \Platforms \AbstractPlatform ;
6+ use Doctrine \DBAL \Types \ConversionException ;
67use Doctrine \DBAL \Types \Type ;
78use Lamoda \EnumBundle \DBAL \EnumType ;
89use Lamoda \EnumBundle \Naming \LowercaseNamingStrategy ;
@@ -54,19 +55,15 @@ public function getObjectToValueMap(): array
5455 ];
5556 }
5657
57- /**
58- * @expectedException \Doctrine\DBAL\Types\ConversionException
59- */
6058 public function testConvertToPHPValueInvalidValue (): void
6159 {
60+ $ this ->expectException (ConversionException::class);
6261 self ::createType ()->convertToPHPValue ('UNKNOWN ' , $ this ->createPlatformMock ());
6362 }
6463
65- /**
66- * @expectedException \Doctrine\DBAL\Types\ConversionException
67- */
6864 public function testConvertToDataBaseValueInvalidValue (): void
6965 {
66+ $ this ->expectException (ConversionException::class);
7067 self ::createType ()->convertToDatabaseValue (OtherEnum::BAR (), $ this ->createPlatformMock ());
7168 }
7269
You can’t perform that action at this time.
0 commit comments