Skip to content

Commit

Permalink
Downgrading phpunit for support for earlier PHP versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnnnyw committed Nov 15, 2016
1 parent 23c9092 commit c11e1b5
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -22,7 +22,7 @@
"jakoch/phantomjs-installer": "^2.1"
},
"require-dev": {
"phpunit/phpunit": "~5.0",
"phpunit/phpunit": "~4.0",
"zendframework/zendpdf": "~2.0",
"smalot/pdfparser": "~0.9"
},
Expand Down
Expand Up @@ -60,7 +60,7 @@ public function testProcedureIsLoadedFromCacheIfCacheIsEnabled()
$request = $this->getRequest();
$request->setUrl('http://test.com');

$renderer = $this->createMock('\JonnyW\PhantomJs\Template\TemplateRendererInterface');
$renderer = $this->getMock('\JonnyW\PhantomJs\Template\TemplateRendererInterface');
$renderer->expects($this->exactly(1))
->method('render')
->will($this->returnValue('var test=1; phantom.exit(1);'));
Expand Down Expand Up @@ -94,7 +94,7 @@ public function testProcedureIsNotLoadedFromCacheIfCacheIsDisabled()
$request = $this->getRequest();
$request->setUrl('http://test.com');

$renderer = $this->createMock('\JonnyW\PhantomJs\Template\TemplateRendererInterface');
$renderer = $this->getMock('\JonnyW\PhantomJs\Template\TemplateRendererInterface');
$renderer->expects($this->exactly(2))
->method('render')
->will($this->returnValue('var test=1; phantom.exit(1);'));
Expand Down Expand Up @@ -127,7 +127,7 @@ public function testProcedureCacheCanBeCleared()
$request = $this->getRequest();
$request->setUrl('http://test.com');

$renderer = $this->createMock('\JonnyW\PhantomJs\Template\TemplateRendererInterface');
$renderer = $this->getMock('\JonnyW\PhantomJs\Template\TemplateRendererInterface');
$renderer->expects($this->exactly(2))
->method('render')
->will($this->returnValue('var test=1; phantom.exit(1);'));
Expand Down
8 changes: 4 additions & 4 deletions src/JonnyW/PhantomJs/Tests/Unit/ClientTest.php
Expand Up @@ -121,7 +121,7 @@ protected function getClient(Engine $engine, ProcedureLoaderInterface $procedure
*/
protected function getEngine()
{
$engine = $this->createMock('\JonnyW\PhantomJs\Engine');
$engine = $this->getMock('\JonnyW\PhantomJs\Engine');

return $engine;
}
Expand All @@ -134,7 +134,7 @@ protected function getEngine()
*/
protected function getMessageFactory()
{
$messageFactory = $this->createMock('\JonnyW\PhantomJs\Http\MessageFactoryInterface');
$messageFactory = $this->getMock('\JonnyW\PhantomJs\Http\MessageFactoryInterface');

return $messageFactory;
}
Expand All @@ -147,7 +147,7 @@ protected function getMessageFactory()
*/
protected function getProcedureLoader()
{
$procedureLoader = $this->createMock('\JonnyW\PhantomJs\Procedure\ProcedureLoaderInterface');
$procedureLoader = $this->getMock('\JonnyW\PhantomJs\Procedure\ProcedureLoaderInterface');

return $procedureLoader;
}
Expand All @@ -160,7 +160,7 @@ protected function getProcedureLoader()
*/
protected function getProcedureCompiler()
{
$procedureCompiler = $this->createMock('\JonnyW\PhantomJs\Procedure\ProcedureCompilerInterface');
$procedureCompiler = $this->getMock('\JonnyW\PhantomJs\Procedure\ProcedureCompilerInterface');

return $procedureCompiler;
}
Expand Down
Expand Up @@ -153,7 +153,7 @@ protected function getChainProcedureLoader(array $procedureLoaders)
*/
protected function getProcedureLoader()
{
$procedureLoader = $this->createMock('\JonnyW\PhantomJs\Procedure\ProcedureLoaderInterface');
$procedureLoader = $this->getMock('\JonnyW\PhantomJs\Procedure\ProcedureLoaderInterface');

return $procedureLoader;
}
Expand All @@ -166,7 +166,7 @@ protected function getProcedureLoader()
*/
protected function getProcedure()
{
$procedure = $this->createMock('\JonnyW\PhantomJs\Procedure\ProcedureInterface');
$procedure = $this->getMock('\JonnyW\PhantomJs\Procedure\ProcedureInterface');

return $procedure;
}
Expand Down
Expand Up @@ -93,7 +93,7 @@ protected function getProcedureLoaderFactory(ProcedureFactoryInterface $procedur
*/
protected function getProcedureFactory()
{
$procedureFactory = $this->createMock('\JonnyW\PhantomJs\Procedure\ProcedureFactoryInterface');
$procedureFactory = $this->getMock('\JonnyW\PhantomJs\Procedure\ProcedureFactoryInterface');

return $procedureFactory;
}
Expand Down
Expand Up @@ -268,7 +268,7 @@ protected function getRenderer()
*/
protected function getFileLocator()
{
$fileLocator = $this->createMock('\Symfony\Component\Config\FileLocatorInterface');
$fileLocator = $this->getMock('\Symfony\Component\Config\FileLocatorInterface');

return $fileLocator;
}
Expand Down
Expand Up @@ -232,7 +232,7 @@ protected function getOutput()
*/
protected function getEngine()
{
$engine = $this->createMock('\JonnyW\PhantomJs\Engine');
$engine = $this->getMock('\JonnyW\PhantomJs\Engine');

return $engine;
}
Expand Down

0 comments on commit c11e1b5

Please sign in to comment.