mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 05:23:21 +00:00
44 lines
1.1 KiB
PHP
44 lines
1.1 KiB
PHP
<?php
|
|
|
|
require_once __DIR__ . '/../../../../PhraseanetPHPUnitAbstract.class.inc';
|
|
|
|
class AbstractBuilderTest extends PhraseanetPHPUnitAbstract
|
|
{
|
|
|
|
public function testConstructExceptionNameEmpty()
|
|
{
|
|
try {
|
|
$this->getMock(
|
|
"\Alchemy\Phrasea\Core\Service\Builder"
|
|
, array()
|
|
, array(
|
|
self::$DI['app']
|
|
, ''
|
|
, new \Symfony\Component\DependencyInjection\ParameterBag\ParameterBag()
|
|
)
|
|
);
|
|
$this->fail("should raise an exception");
|
|
} catch (\Exception $e) {
|
|
|
|
}
|
|
}
|
|
|
|
public function testConstructExceptionCreate()
|
|
{
|
|
try {
|
|
$this->getMock(
|
|
"\\Alchemy\\Phrasea\\Core\\Service\\Builder"
|
|
, array()
|
|
, array(
|
|
self::$DI['app'],
|
|
'test',
|
|
new \Symfony\Component\DependencyInjection\ParameterBag\ParameterBag(),
|
|
)
|
|
);
|
|
$this->fail("should raise an exception");
|
|
} catch (\Exception $e) {
|
|
|
|
}
|
|
}
|
|
}
|