On to PHP7^!

This commit is contained in:
Dominik Liebler
2016-09-21 17:23:20 +02:00
parent a7928d010c
commit 95ad95c33e
6 changed files with 74 additions and 28 deletions

View File

@@ -73,7 +73,7 @@ class DecoratorTest extends \PHPUnit_Framework_TestCase
*/
public function testDecoratorOnlyAcceptRenderer()
{
$mock = $this->getMock('DesignPatterns\Structural\Decorator\RendererInterface');
$mock = $this->createMock('DesignPatterns\Structural\Decorator\RendererInterface');
$dec = $this->getMockForAbstractClass('DesignPatterns\Structural\Decorator\Decorator', array($mock));
$this->assertNotNull($dec);
}