Skip to content

Commit ae5660b

Browse files
committed
Skip exception tests if PHPUnit < 5.2 (PHP < 5.6)
1 parent 7b52263 commit ae5660b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/ExceptionTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
class ExceptionTest extends TestCase
2020
{
2121
/**
22+
* @requires PHPUnit 5.2
2223
* @throws Exceptions\FormatException
2324
*/
2425
public function testFormat()
@@ -28,6 +29,7 @@ public function testFormat()
2829
}
2930

3031
/**
32+
* @requires PHPUnit 5.2
3133
* @throws Exceptions\ProductException
3234
*/
3335
public function testProduct()
@@ -37,6 +39,7 @@ public function testProduct()
3739
}
3840

3941
/**
42+
* @requires PHPUnit 5.2
4043
* @throws Exceptions\VersionException
4144
*/
4245
public function testVersion()
@@ -46,6 +49,7 @@ public function testVersion()
4649
}
4750

4851
/**
52+
* @requires PHPUnit 5.2
4953
* @throws Exceptions\UserAgentParserException
5054
*/
5155
public function testUserAgentParser()

0 commit comments

Comments
 (0)