Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

- Skip test for PHP < 5.3.

  • Loading branch information...
commit afb124367b20f32fe76f99b2f73b68fab536df67 1 parent 2541f10
@sebastianbergmann authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 PHPUnit/Tests/Framework/TestCaseTest.php
View
8 PHPUnit/Tests/Framework/TestCaseTest.php
@@ -289,11 +289,19 @@ public function testGlobalsBackupPost()
*/
public function testStaticAttributesBackupPre()
{
+ if (!version_compare(PHP_VERSION, '5.3', '>')) {
+ $this->markTestSkipped('PHP 5.3 (or later) is required.');
+ }
+
$GLOBALS['singleton'] = Singleton::getInstance();
}
public function testStaticAttributesBackupPost()
{
+ if (!version_compare(PHP_VERSION, '5.3', '>')) {
+ $this->markTestSkipped('PHP 5.3 (or later) is required.');
+ }
+
$this->assertNotSame($GLOBALS['singleton'], Singleton::getInstance());
}
Please sign in to comment.
Something went wrong with that request. Please try again.