"unknow", "options" => array()) ); try { $service = Builder::create(self::$DI['app'], $configuration); $this->fail("An exception should be raised"); } catch (\Exception $e) { } } public function testCreate() { $configuration = new ParameterBag( array("type" => "Log\\Doctrine\\Monolog", "options" => array( "handler" => "rotate" , "filename" => "test" , 'channel' => 'Test' , 'output' => 'json' , 'max_day' => '1' ) ) ); $service = Builder::create(self::$DI['app'], $configuration); $this->assertInstanceOf("\Alchemy\Phrasea\Core\Service\ServiceAbstract", $service); } public function testCreateNamespace() { $configuration = new ParameterBag( array("type" => "Log\\Doctrine\\Phpecho", "options" => array()) ); $service = Builder::create(self::$DI['app'], $configuration); $this->assertInstanceOf("\Alchemy\Phrasea\Core\Service\ServiceAbstract", $service); } }