public function testUndefinedExtensionMethod() { $this->setExpectedException('BadMethodCallException'); $mapping = new Mapping(new Emitter()); $mapping->foo(); }