File tree 3 files changed +9
-7
lines changed 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 7
7
- 5.6
8
8
- 7.0
9
9
- 7.1
10
+ - nightly
10
11
- hhvm
11
12
13
+ matrix :
14
+ allow_failures :
15
+ - php : hhvm
16
+
12
17
before_script :
13
18
- composer install --no-interaction
14
19
Original file line number Diff line number Diff line change 25
25
"php" : " >=5.3"
26
26
},
27
27
"require-dev" : {
28
- "phpunit/phpunit" : " 4.* " ,
28
+ "phpunit/phpunit" : " ^4.8.35|^5.7|^6.0 " ,
29
29
"squizlabs/php_codesniffer" : " 1.*"
30
30
}
31
31
}
Original file line number Diff line number Diff line change 11
11
* @author Daniel Costa <danielcosta@gmail.com>
12
12
* @author Mirosław Filip <mirfilip@gmail.com>
13
13
*/
14
- class EnumTest extends \PHPUnit_Framework_TestCase
14
+ class EnumTest extends \PHPUnit \ Framework \TestCase
15
15
{
16
16
/**
17
17
* getValue()
@@ -40,14 +40,11 @@ public function testGetKey()
40
40
41
41
/**
42
42
* @dataProvider invalidValueProvider
43
+ * @expectedException UnexpectedValueException
44
+ * @expectedExceptionMessage is not part of the enum MyCLabs\Tests\Enum\EnumFixture
43
45
*/
44
46
public function testCreatingEnumWithInvalidValue ($ value )
45
47
{
46
- $ this ->setExpectedException (
47
- '\UnexpectedValueException ' ,
48
- 'Value \'' . $ value . '\' is not part of the enum MyCLabs\Tests\Enum\EnumFixture '
49
- );
50
-
51
48
new EnumFixture ($ value );
52
49
}
53
50
You can’t perform that action at this time.
0 commit comments