File tree 4 files changed +7
-9
lines changed
4 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 7
7
tests :
8
8
override :
9
9
-
10
- command : vendor/bin/phpunit --coverage-clover=build/clover.xml
10
+ command : XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-clover=build/clover.xml
11
11
coverage :
12
12
file : build/clover.xml
13
13
format : clover
Original file line number Diff line number Diff line change 4
4
- 7.1
5
5
- 7.2
6
6
- 7.3
7
+ - 8.0
7
8
- nightly
8
9
9
10
sudo : false
Original file line number Diff line number Diff line change 11
11
}
12
12
],
13
13
"require" : {
14
- "php" : " ^7.1" ,
14
+ "php" : " ^7.1 || ^8.0 " ,
15
15
"paillechat/php-enum" : " ^1.2 || ^2.1" ,
16
16
"symfony/http-kernel" : " ^3.4 || ^4.0 || ^5.0" ,
17
17
"symfony/dependency-injection" : " ^3.4 || ^4.0 || ^5.0" ,
18
18
"symfony/config" : " ^3.4 || ^4.0 || ^5.0" ,
19
19
"doctrine/dbal" : " ^2.4"
20
20
},
21
21
"require-dev" : {
22
- "phpunit/phpunit" : " ^7.0" ,
22
+ "phpunit/phpunit" : " ^7.0 || ^8.0 || ^9.0 " ,
23
23
"symfony/yaml" : " ^3.4 || ^4.0 || ^5.0"
24
24
},
25
25
"autoload" : {
Original file line number Diff line number Diff line change 3
3
namespace Lamoda \EnumBundle \Tests \Unit \DBAL ;
4
4
5
5
use Doctrine \DBAL \Platforms \AbstractPlatform ;
6
+ use Doctrine \DBAL \Types \ConversionException ;
6
7
use Doctrine \DBAL \Types \Type ;
7
8
use Lamoda \EnumBundle \DBAL \EnumType ;
8
9
use Lamoda \EnumBundle \Naming \LowercaseNamingStrategy ;
@@ -54,19 +55,15 @@ public function getObjectToValueMap(): array
54
55
];
55
56
}
56
57
57
- /**
58
- * @expectedException \Doctrine\DBAL\Types\ConversionException
59
- */
60
58
public function testConvertToPHPValueInvalidValue (): void
61
59
{
60
+ $ this ->expectException (ConversionException::class);
62
61
self ::createType ()->convertToPHPValue ('UNKNOWN ' , $ this ->createPlatformMock ());
63
62
}
64
63
65
- /**
66
- * @expectedException \Doctrine\DBAL\Types\ConversionException
67
- */
68
64
public function testConvertToDataBaseValueInvalidValue (): void
69
65
{
66
+ $ this ->expectException (ConversionException::class);
70
67
self ::createType ()->convertToDatabaseValue (OtherEnum::BAR (), $ this ->createPlatformMock ());
71
68
}
72
69
You can’t perform that action at this time.
0 commit comments