function testMockedInterfaceExpectsParameters() { $mock = new MockDummyInterface(); $this->expectError(); $mock->anotherMethod(); // E_WARNING: Missing argument 1 for MockDummyInterface::anotherMethod() }
function testMockedInterfaceExpectsParameters() { $mock = new MockDummyInterface(); $mock->anotherMethod(); $this->assertError(); }