Fix unit tests

This commit is contained in:
Romain Neutron
2013-01-28 22:47:25 +01:00
parent aa172ac9fd
commit 8017f4126b
2 changed files with 6 additions and 5 deletions

View File

@@ -127,12 +127,12 @@ abstract class PhraseanetPHPUnitAbstract extends WebTestCase
return $browser;
}));
$app['notification.deliverer'] = $this->getMockBuilder('Alchemy\Phrasea\Notification\Deliverer')
$app['notification.deliverer'] = $phpunit->getMockBuilder('Alchemy\Phrasea\Notification\Deliverer')
->disableOriginalConstructor()
->getMock();
$app['notification.deliverer']->expects($this->any())
$app['notification.deliverer']->expects($phpunit->any())
->method('deliver')
->will($this->returnCallback(function() use ($phpunit){
->will($phpunit->returnCallback(function() use ($phpunit){
$phpunit->fail('Notification deliverer must be mocked');
}));