getForMock() public static method

public static getForMock ( mageekguy\atoum\mock\aggregator $mock )
$mock mageekguy\atoum\mock\aggregator
示例#1
0
 public function testGetForMock()
 {
     $this->if($mockController = new testedClass())->and($mockController->control($mock = new \mock\object()))->then->object(testedClass::getForMock($mock))->isIdenticalTo($mockController)->if($otherMockController = new testedClass())->and($otherMockController->control($otherMock = new \mock\object()))->then->object(testedClass::getForMock($mock))->isIdenticalTo($mockController)->object(testedClass::getForMock($otherMock))->isIdenticalTo($otherMockController);
 }