Add error pages, fix error handling and PHP conf

This commit is contained in:
Romain Neutron
2013-06-14 20:35:39 +02:00
parent 09c6361475
commit 42db38d055
140 changed files with 1962 additions and 1218 deletions

View File

@@ -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) {
}
}