You've already forked php-flasher
mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-04-05 12:32:55 +01:00
test: rename getMock() to mock()
This commit is contained in:
@@ -18,7 +18,7 @@ class FlasherContainerTest extends TestCase
|
|||||||
public function testInit()
|
public function testInit()
|
||||||
{
|
{
|
||||||
$this->setProperty('Flasher\Prime\Container\FlasherContainer', 'instance', null);
|
$this->setProperty('Flasher\Prime\Container\FlasherContainer', 'instance', null);
|
||||||
$container = $this->getMock('Flasher\Prime\Container\ContainerInterface');
|
$container = $this->mock('Flasher\Prime\Container\ContainerInterface');
|
||||||
|
|
||||||
FlasherContainer::init($container);
|
FlasherContainer::init($container);
|
||||||
|
|
||||||
@@ -34,10 +34,10 @@ class FlasherContainerTest extends TestCase
|
|||||||
{
|
{
|
||||||
$this->setProperty('Flasher\Prime\Container\FlasherContainer', 'instance', null);
|
$this->setProperty('Flasher\Prime\Container\FlasherContainer', 'instance', null);
|
||||||
|
|
||||||
$container = $this->getMock('Flasher\Prime\Container\ContainerInterface');
|
$container = $this->mock('Flasher\Prime\Container\ContainerInterface');
|
||||||
$container
|
$container
|
||||||
->method('get')
|
->method('get')
|
||||||
->willreturn($this->getMock('Flasher\Prime\FlasherInterface'));
|
->willreturn($this->mock('Flasher\Prime\FlasherInterface'));
|
||||||
|
|
||||||
FlasherContainer::init($container);
|
FlasherContainer::init($container);
|
||||||
|
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ class TestCase extends \PHPUnit\Framework\TestCase
|
|||||||
*
|
*
|
||||||
* @return MockObject
|
* @return MockObject
|
||||||
*/
|
*/
|
||||||
protected function getMock($className)
|
protected function mock($className)
|
||||||
{
|
{
|
||||||
return $this->getMockBuilder($className)->getMock();
|
return $this->getMockBuilder($className)->getMock();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user