mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
App loading optimisation + unit tests to PHP 5.4
This commit is contained in:
@@ -25,10 +25,9 @@ class XSendFileMappingGeneratorTest extends \PhraseanetPHPUnitAbstract
|
||||
->will($this->returnValue($option));
|
||||
|
||||
$command = new XSendFileMappingGenerator();
|
||||
$phpunit = $this;
|
||||
|
||||
self::$DI['cli']['monolog'] = self::$DI['cli']->share(function () use ($phpunit) {
|
||||
return $phpunit->getMockBuilder('Monolog\Logger')->disableOriginalConstructor()->getMock();
|
||||
self::$DI['cli']['monolog'] = self::$DI['cli']->share(function () {
|
||||
return $this->getMockBuilder('Monolog\Logger')->disableOriginalConstructor()->getMock();
|
||||
});
|
||||
self::$DI['cli']['conf'] = $this->getMockBuilder('Alchemy\Phrasea\Core\Configuration\PropertyAccess')
|
||||
->disableOriginalConstructor()
|
||||
|
Reference in New Issue
Block a user