示例#1
0
 function testFailedSequence()
 {
     $this->_test->expectArguments("assertTrue", array(false, "*"));
     $this->_test->expectCallCount("assertTrue", 2);
     $mock = new MockDummy($this->_test);
     $mock->expectArgumentsAt(0, "aMethod", array(1, 2, 3));
     $mock->expectArgumentsAt(1, "aMethod", array("Hello"));
     $mock->aMethod(1, 2);
     $mock->aMethod("Goodbye");
 }