Skip to content

Commit 79932e0

Browse files
author
Kevin Buchholz
authored
Update phpunit/phpunit requirement from 7.4.* to 7.4.* || 8.3.* (#6)
Update phpunit/phpunit requirement from 7.4.* to 7.4.* || 8.3.*
2 parents 1d76167 + d022b97 commit 79932e0

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@
2626
"require": {
2727
"php": ">=7.1",
2828
"eloquent/enumeration": "^6.0",
29-
"laravel/framework": ">=5.7"
29+
"laravel/framework": "5.7.* || 5.8.* || 6.0.*"
3030
},
3131
"require-dev": {
3232
"consistence/coding-standard": "3.7",
33-
"orchestra/testbench": "~3.0",
33+
"orchestra/testbench": "~3.0 || 4.*",
3434
"phpmd/phpmd": "^2.6",
35-
"phpunit/phpunit": "7.4.*",
35+
"phpunit/phpunit": "7.4.* || 8.3.*",
3636
"slevomat/coding-standard": "4.8.7",
3737
"squizlabs/php_codesniffer": "^3.4"
3838
},

tests/unit/IsEnumKeyTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
namespace Sourceboat\Enumeration\Tests;
44

5+
use Eloquent\Enumeration\Exception\UndefinedMemberException;
6+
57
class IsEnumKeyTest extends TestCase
68
{
79
/**
@@ -37,11 +39,11 @@ public function testIsEnumKey(UserRole $role, string $method, bool $result): voi
3739
/**
3840
* Test functionality of is<EnumKey> helper.
3941
*
40-
* @expectedException \Eloquent\Enumeration\Exception\UndefinedMemberException
4142
* @return void
4243
*/
4344
public function testIsEnumKeyException(): void
4445
{
46+
$this->expectException(UndefinedMemberException::class);
4547
UserRole::USER()->isStudent();
4648
}
4749
}

0 commit comments

Comments
 (0)