コード例 #1
0
 /**
  * @expectedException \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
  * @expectedExceptionMessage Task prout not found.
  */
 public function testConvertFailure()
 {
     $converter = new TaskConverter(self::$DI['app']['EM']->getRepository('Phraseanet:Task'));
     $converter->convert('prout');
 }
コード例 #2
0
 /**
  * @expectedException \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
  * @expectedExceptionMessage Task prout not found.
  */
 public function testConvertFailure()
 {
     $converter = new TaskConverter(self::$DI['app']['EM']);
     $converter->convert('prout');
 }