public function test_calling_mock_without_expectations_and_stubs() { $error = "[Test]\n\nCannot find any stub or expecation for call [any_non_declared_method] with arguments:\nArray\n(\n)\n"; $mock = new Mock('Test'); $this->setExpectedException('\\Pt\\MockException', $error); $mock->any_non_declared_method(); }