function testSettingExpectationOnMissingMethodThrowsError() { $mock = new TestDummy(); $this->expectError(); $mock->expectCallCount('aMissingMethod', 2); }