コード例 #1
0
ファイル: PhakeTest.php プロジェクト: kore/Phake
 public function testArgumentCapturingAllValls()
 {
     $mock = Phake::mock('PhakeTest_MockedClass');
     $obj1 = new stdClass();
     $obj2 = new stdClass();
     $obj3 = new stdClass();
     $mock->fooWithArgument($obj1);
     $mock->fooWithArgument($obj2);
     $mock->fooWithArgument($obj3);
     Phake::verify($mock, Phake::atLeast(1))->fooWithArgument(Phake::captureAll($toArgument));
     $this->assertSame(array($obj1, $obj2, $obj3), $toArgument);
 }