Skip to content

Commit 19b1d4d

Browse files
committed
add php 8 to supported versions
1 parent 8ef04ef commit 19b1d4d

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

.scrutinizer.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build:
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

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ php:
44
- 7.1
55
- 7.2
66
- 7.3
7+
- 8.0
78
- nightly
89

910
sudo: false

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
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": {

tests/Unit/DBAL/EnumTypeTest.php

+3-6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Lamoda\EnumBundle\Tests\Unit\DBAL;
44

55
use Doctrine\DBAL\Platforms\AbstractPlatform;
6+
use Doctrine\DBAL\Types\ConversionException;
67
use Doctrine\DBAL\Types\Type;
78
use Lamoda\EnumBundle\DBAL\EnumType;
89
use 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

0 commit comments

Comments
 (0)