mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-03 01:44:26 +02:00
Configure PHPunit to convert deprecation errors to exceptions, but ignore them in tests by default.
This commit is contained in:
@@ -15,7 +15,11 @@
|
|||||||
timeoutForSmallTests="1"
|
timeoutForSmallTests="1"
|
||||||
timeoutForMediumTests="10"
|
timeoutForMediumTests="10"
|
||||||
timeoutForLargeTests="60"
|
timeoutForLargeTests="60"
|
||||||
verbose="false">
|
verbose="false"
|
||||||
|
convertErrorsToExceptions="true"
|
||||||
|
convertNoticesToExceptions="true"
|
||||||
|
convertWarningsToExceptions="true"
|
||||||
|
convertDeprecationsToExceptions="true">
|
||||||
<testsuites>
|
<testsuites>
|
||||||
<testsuite name="foo">
|
<testsuite name="foo">
|
||||||
<directory>./tests/UnitTests/</directory>
|
<directory>./tests/UnitTests/</directory>
|
||||||
|
@@ -149,7 +149,7 @@ class PHPUnit_Smarty extends PHPUnit\Framework\TestCase
|
|||||||
$this->smarty->setCacheDir(__DIR__ . '/cache');
|
$this->smarty->setCacheDir(__DIR__ . '/cache');
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->getSmartyObj();
|
$this->smarty->setErrorReporting(E_ALL &~ E_USER_DEPRECATED);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user