Skip to content

Commit

Permalink
Merge pull request #43 from nass600/fix-callable
Browse files Browse the repository at this point in the history
Fixed callable check on addProvider
  • Loading branch information
h4cc committed Apr 13, 2015
2 parents da710fc + fc3cd77 commit c857afb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion Fixtures/FixtureManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ protected function configureLoader(LoaderInterface $loader)
$loader->setLogger($this->logger);
}
}
if (is_callable($loader, 'addProvider')) { // new in Alice 1.7.2
if (is_callable(array($loader, 'addProvider'))) { // new in Alice 1.7.2
$loader->addProvider($this->providers);
} else { // BC path
$loader->setProviders($this->providers);
Expand Down
1 change: 0 additions & 1 deletion Tests/Fixture/FixtureManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ public function testProviders()
->with('yaml', 'en_EN')->will($this->returnValue($this->yamlLoaderMock));

$this->yamlLoaderMock->expects($this->once())->method('load')->will($this->returnValue(array()));
$this->yamlLoaderMock->expects($this->once())->method('setProviders');

$provider = function () {
return "foobar";
Expand Down

0 comments on commit c857afb

Please sign in to comment.