Commit 1a61d0a1 authored by Daniel Hürtgen's avatar Daniel Hürtgen

BUGFIX: Switched back to TestCase::getMock() instead of TestCase::createMock()

parent f957d7e8
......@@ -42,13 +42,19 @@ class StandardsFactoryTest extends \PHPUnit_Framework_TestCase
protected function setUp()
{
parent::setUp();
$this->standardFactoryMock = $this->createMock(
$this->standardFactoryMock = $this->getMock(
'Higidi\ComposerPhpCSStandardsPlugin\PHPCodeSniffer\Standard\Factory'
);
$this->standardFactoryMock
->method('create')
->willReturn(
$this->createMock('Higidi\ComposerPhpCSStandardsPlugin\PHPCodeSniffer\Standard\Standard')
$this->getMock(
'Higidi\ComposerPhpCSStandardsPlugin\PHPCodeSniffer\Standard\Standard',
array(),
array(),
'',
false
)
);
$this->fixture = new StandardsFactory($this->standardFactoryMock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment