public static function getConfig() { $config = new ConfigurationBuilder(); $config->addInvokable("IndependentService", IndependentService::getClass()); $config->addFactory("DependentService", __CLASS__); return $config->getConfig(); }
/** * @dataProvider dataAddInvokableWithInvalidArgumentWorks * @param mixed $invalidArgument */ public function testAddInvokableWithInvalidArgumentWorks($invalidArgument) { $this->setExpectedException(self::CONFIGURATION_EXCEPTION); $this->builder->addInvokable("A", $invalidArgument); }