getMock( "\Alchemy\Phrasea\Core\Service\Builder" , array( self::$core , '' , new \Symfony\Component\DependencyInjection\ParameterBag\ParameterBag() ) ); $this->fail("should raise an exception"); } catch (\Exception $e) { } } public function testConstructExceptionCreate() { try { $stub = $this->getMock( "\\Alchemy\\Phrasea\\Core\\Service\\Builder" , array( self::$core, 'test', new \Symfony\Component\DependencyInjection\ParameterBag\ParameterBag(), ) ); $this->fail("should raise an exception"); } catch (\Exception $e) { } } }