mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Add error pages, fix error handling and PHP conf
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
|
||||
class randomTest extends PhraseanetPHPUnitAbstract
|
||||
{
|
||||
protected $random;
|
||||
@@ -20,7 +22,7 @@ class randomTest extends PhraseanetPHPUnitAbstract
|
||||
try {
|
||||
$this->random->helloToken($token);
|
||||
$this->fail();
|
||||
} catch (Exception_NotFound $e) {
|
||||
} catch (NotFoundHttpException $e) {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -102,7 +104,7 @@ class randomTest extends PhraseanetPHPUnitAbstract
|
||||
try {
|
||||
$this->random->helloToken($token);
|
||||
$this->fail();
|
||||
} catch (Exception_NotFound $e) {
|
||||
} catch (NotFoundHttpException $e) {
|
||||
|
||||
}
|
||||
|
||||
@@ -124,7 +126,7 @@ class randomTest extends PhraseanetPHPUnitAbstract
|
||||
try {
|
||||
$this->random->helloToken($token);
|
||||
$this->fail();
|
||||
} catch (Exception_NotFound $e) {
|
||||
} catch (NotFoundHttpException $e) {
|
||||
|
||||
}
|
||||
|
||||
@@ -135,7 +137,7 @@ class randomTest extends PhraseanetPHPUnitAbstract
|
||||
try {
|
||||
$this->random->helloToken($token);
|
||||
$this->fail();
|
||||
} catch (Exception_NotFound $e) {
|
||||
} catch (NotFoundHttpException $e) {
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user