Skip to content

Commit

Permalink
Allow yaml test runner to work with empty objects
Browse files Browse the repository at this point in the history
  • Loading branch information
polyfractal committed Jan 23, 2014
1 parent 0baf101 commit b817b07
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Elasticsearch/Tests/YamlRunnerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,11 @@ private function executeTestCase($test, $testFile)

$expected = $this->replaceWithStash($expected, $stash);
$actual = $this->replaceWithStash($actual, $stash);
if (is_object($expected) === true) {
$expected = (array)$expected;
}
$this->assertEquals($expected, $actual);
//$this->assertSame()

echo "\n";

Expand Down

0 comments on commit b817b07

Please sign in to comment.