File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232 "php" : " >=5.4.0"
3333 },
3434 "require-dev" : {
35- "phpunit/phpunit" : " >=4.0 " ,
35+ "phpunit/phpunit" : " ~4 || ~5 " ,
3636 "codeclimate/php-test-reporter" : " >=0.2.0"
3737 },
3838 "support" : {
Original file line number Diff line number Diff line change 99namespace vipnytt \UserAgentParser \Tests ;
1010
1111use vipnytt \UserAgentParser ;
12- use vipnytt \UserAgentParser \Exceptions \FormatException ;
1312
1413/**
1514 * Class InvalidFormatTest
1918class InvalidFormatTest extends \PHPUnit_Framework_TestCase
2019{
2120 /**
21+ * @requires PHPUnit 5.2
2222 * @dataProvider generateDataForTest
2323 * @param string $product
2424 * @param int|string|null $version
2525 */
2626 public function testInvalidFormat ($ product , $ version )
2727 {
28- if (PHP_VERSION_ID < 50600 ) {
29- $ this ->markTestSkipped ();
30- return ;
31- }
32- $ this ->expectException (FormatException::class);
28+ $ this ->expectException (UserAgentParser \Exceptions \FormatException::class);
3329 new UserAgentParser ($ product , $ version );
3430 }
3531
Original file line number Diff line number Diff line change 1818class TruncateInvalidTest extends \PHPUnit_Framework_TestCase
1919{
2020 /**
21+ * @requires PHPUnit 5.2
2122 * @dataProvider generateDataForTest
2223 * @param string $product
2324 * @param int|string|null $version
2425 */
2526 public function testTruncateInvalid ($ product , $ version )
2627 {
27- if (PHP_VERSION_ID < 50600 ) {
28- $ this ->markTestSkipped ();
29- return ;
30- }
3128 $ this ->expectException (\PHPUnit_Framework_Error_Warning::class);
3229 new UserAgentParser ($ product , $ version );
3330 }
You can’t perform that action at this time.
0 commit comments