diff --git a/phpunit.xml b/phpunit.xml index e0ad81d6..15e1d563 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -15,7 +15,11 @@ timeoutForSmallTests="1" timeoutForMediumTests="10" timeoutForLargeTests="60" - verbose="false"> + verbose="false" + convertErrorsToExceptions="true" + convertNoticesToExceptions="true" + convertWarningsToExceptions="true" + convertDeprecationsToExceptions="true"> ./tests/UnitTests/ diff --git a/tests/PHPUnit_Smarty.php b/tests/PHPUnit_Smarty.php index de4a3776..bed59818 100644 --- a/tests/PHPUnit_Smarty.php +++ b/tests/PHPUnit_Smarty.php @@ -149,7 +149,7 @@ class PHPUnit_Smarty extends PHPUnit\Framework\TestCase $this->smarty->setCacheDir(__DIR__ . '/cache'); } - $this->getSmartyObj(); + $this->smarty->setErrorReporting(E_ALL &~ E_USER_DEPRECATED); } /**