Skip to content

Commit

Permalink
try a test fix for hhvm
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul M. Jones committed Dec 19, 2013
1 parent f742eba commit d4a3b70
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/src/LoaderTest.php
Expand Up @@ -38,9 +38,7 @@ public function testLoadClass()
$this->assertSame($expect_file, $actual_file);

// is it actually loaded?
$classes = get_declared_classes();
$actual = array_pop($classes);
$this->assertSame($class, $actual);
$this->assertTrue(in_array($class, get_declared_classes()));

// is it recorded as loaded?
$expect = array($class => $expect_file);
Expand Down Expand Up @@ -104,9 +102,7 @@ public function testLoadExplicitClass()
$this->assertSame($file, $actual_file);

// is it actually loaded?
$classes = get_declared_classes();
$actual = array_pop($classes);
$this->assertSame($class, $actual);
$this->assertTrue(in_array($class, get_declared_classes()));

// is it recorded as loaded?
$expect = array($class => $file);
Expand Down

0 comments on commit d4a3b70

Please sign in to comment.