Permalink
Browse files

BUGFIX Skip NamespacedClassManifestTest on PHP versions before 5.3

  • Loading branch information...
simonwelsh committed Dec 17, 2011
1 parent 3e6a91a commit 97f8cc4ab36b529d731ff2e21ba31a1f57b245bf
Showing with 5 additions and 1 deletion.
  1. +5 −1 tests/core/manifest/NamespacedClassManifestTest.php
@@ -12,7 +12,11 @@ class NamespacedClassManifestTest extends SapphireTest {
public function setUp() {
parent::setUp();
-
+
+ if(version_compare(PHP_VERSION, '5.3', '<')) {
+ $this->markTestSkipped('Namespaces are not supported before PHP 5.3');
+ }
+
$this->base = dirname(__FILE__) . '/fixtures/namespaced_classmanifest';
$this->manifest = new SS_ClassManifest($this->base, false, true, false);
}

0 comments on commit 97f8cc4

Please sign in to comment.