/** * @test */ public function exceptionBuilder() { $this->setExpectedException('WrongTypeException'); $factory = new BuilderFactory(); $factory->getBuilder("xxx"); $this->fail("Should have been thrown an 'WrongTypeException' cause this type does not exists"); }
private function getBuilder($type) { return $this->builderFactory->getBuilder($type); }