Skip to content

Commit

Permalink
Removing createMock usage (not supported by PHPUnit < 5.6)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Nov 30, 2016
1 parent 26105d3 commit 7bce006
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,14 @@ public function testWillFailOnFallbackFailureWithNotLoadedMetadata()
public function testWillIgnoreCacheEntriesThatAreNotMetadataInstances()
{
/* @var $cacheDriver Cache|\PHPUnit_Framework_MockObject_MockObject */
$cacheDriver = $this->createMock(Cache::class);
$cacheDriver = $this->getMockBuilder(Cache::class)->getMock();

$this->cmf->setCacheDriver($cacheDriver);

$cacheDriver->expects(self::once())->method('fetch')->with('Foo$CLASSMETADATA')->willReturn(new \stdClass());

/* @var $metadata ClassMetadata */
$metadata = $this->createMock(ClassMetadata::class);
$metadata = $this->getMockBuilder(ClassMetadata::class)->getMock();

$fallbackCallback = $this->getMockBuilder(\stdClass::class)->setMethods(['__invoke'])->getMock();

Expand Down

0 comments on commit 7bce006

Please sign in to comment.