mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
Update for PHPunit >= 5
This commit is contained in:
@@ -32,6 +32,9 @@ if (!class_exists('PHPUnit_Framework_TestCase') && !class_exists('\PHPUnit\Frame
|
|||||||
if (!class_exists('\PHPUnit_Framework_TestCase') && class_exists('\PHPUnit\Framework\TestCase')) {
|
if (!class_exists('\PHPUnit_Framework_TestCase') && class_exists('\PHPUnit\Framework\TestCase')) {
|
||||||
class_alias('\PHPUnit\Framework\TestCase', '\PHPUnit_Framework_TestCase');
|
class_alias('\PHPUnit\Framework\TestCase', '\PHPUnit_Framework_TestCase');
|
||||||
}
|
}
|
||||||
|
if (!class_exists('\PHPUnit_Framework_Error') && class_exists('\PHPUnit\Framework\Error')) {
|
||||||
|
class_alias('\PHPUnit\Framework\Error', '\PHPUnit_Framework_Error');
|
||||||
|
}
|
||||||
require_once 'PHPUnit_Smarty.php';
|
require_once 'PHPUnit_Smarty.php';
|
||||||
if (!ini_get('date.timezone')) {
|
if (!ini_get('date.timezone')) {
|
||||||
ini_set('date.timezone', 'Europe/Berlin');
|
ini_set('date.timezone', 'Europe/Berlin');
|
||||||
|
@@ -25,8 +25,8 @@
|
|||||||
"forum": "http://www.smarty.net/forums/"
|
"forum": "http://www.smarty.net/forums/"
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"phpunit/phpunit": "~5.7",
|
"phpunit/phpunit": "4.6.6",
|
||||||
"php": ">=5.3"
|
"php": ">=5.2"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"classmap": [
|
"classmap": [
|
||||||
|
Reference in New Issue
Block a user