コード例 #1
0
 function testMockedInterfaceExpectsParameters()
 {
     $mock = new MockDummyInterface();
     $this->expectError();
     $mock->anotherMethod();
     // E_WARNING: Missing argument 1 for MockDummyInterface::anotherMethod()
 }
コード例 #2
0
 function testMockedInterfaceExpectsParameters()
 {
     $mock = new MockDummyInterface();
     $mock->anotherMethod();
     $this->assertError();
 }