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