mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-12 10:26:32 +00:00
simplified tests as min version if now 5.3.3
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@
|
||||
processIsolation="false"
|
||||
stopOnFailure="false"
|
||||
syntaxCheck="false"
|
||||
bootstrap="test/bootstrap.php"
|
||||
bootstrap="vendor/autoload.php"
|
||||
>
|
||||
<testsuites>
|
||||
<testsuite name="Twig Test Suite">
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Twig_Tests_AutoloaderTest extends PHPUnit_Framework_TestCase
|
||||
class Twig_Tests_AutoloaderTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @group legacy
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
require_once dirname(dirname(__FILE__)).'/FilesystemHelper.php';
|
||||
|
||||
class Twig_Tests_Cache_FilesystemTest extends PHPUnit_Framework_TestCase
|
||||
class Twig_Tests_Cache_FilesystemTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
private $classname;
|
||||
private $directory;
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Twig_Tests_CompilerTest extends PHPUnit_Framework_TestCase
|
||||
class Twig_Tests_CompilerTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
public function testReprNumericValueWithLocale()
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Twig_Tests_ContainerRuntimeLoaderTest extends PHPUnit_Framework_TestCase
|
||||
class Twig_Tests_ContainerRuntimeLoaderTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @requires PHP 5.3
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class CustomExtensionTest extends PHPUnit_Framework_TestCase
|
||||
class CustomExtensionTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @requires PHP 5.3
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
require_once dirname(__FILE__).'/FilesystemHelper.php';
|
||||
|
||||
class Twig_Tests_EnvironmentTest extends PHPUnit_Framework_TestCase
|
||||
class Twig_Tests_EnvironmentTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
private $deprecations = array();
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Twig_Tests_ErrorTest extends PHPUnit_Framework_TestCase
|
||||
class Twig_Tests_ErrorTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
public function testErrorWithObjectFilename()
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Twig_Tests_ExpressionParserTest extends PHPUnit_Framework_TestCase
|
||||
class Twig_Tests_ExpressionParserTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @expectedException Twig_Error_Syntax
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Twig_Tests_Extension_CoreTest extends PHPUnit_Framework_TestCase
|
||||
class Twig_Tests_Extension_CoreTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @dataProvider getRandomFunctionTestData
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Twig_Tests_Extension_SandboxTest extends PHPUnit_Framework_TestCase
|
||||
class Twig_Tests_Extension_SandboxTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected static $params;
|
||||
protected static $templates;
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Twig_Tests_FactoryRuntimeLoaderTest extends PHPUnit_Framework_TestCase
|
||||
class Twig_Tests_FactoryRuntimeLoaderTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
public function testLoad()
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
require_once dirname(__FILE__).'/FilesystemHelper.php';
|
||||
|
||||
class Twig_Tests_FileCachingTest extends PHPUnit_Framework_TestCase
|
||||
class Twig_Tests_FileCachingTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
private $env;
|
||||
private $tmpDir;
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Twig_Tests_FileExtensionEscapingStrategyTest extends PHPUnit_Framework_TestCase
|
||||
class Twig_Tests_FileExtensionEscapingStrategyTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @dataProvider getGuessData
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class Twig_Tests_LexerTest extends PHPUnit_Framework_TestCase
|
||||
class Twig_Tests_LexerTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @group legacy
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Twig_Tests_Loader_ArrayTest extends PHPUnit_Framework_TestCase
|
||||
class Twig_Tests_Loader_ArrayTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @group legacy
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Twig_Tests_Loader_ChainTest extends PHPUnit_Framework_TestCase
|
||||
class Twig_Tests_Loader_ChainTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @group legacy
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Twig_Tests_Loader_FilesystemTest extends PHPUnit_Framework_TestCase
|
||||
class Twig_Tests_Loader_FilesystemTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
public function testGetSourceContext()
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Twig_Tests_NativeExtensionTest extends PHPUnit_Framework_TestCase
|
||||
class Twig_Tests_NativeExtensionTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @requires PHP 5.3
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Twig_Tests_Node_Expression_CallTest extends PHPUnit_Framework_TestCase
|
||||
class Twig_Tests_Node_Expression_CallTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
public function testGetArguments()
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class Twig_Tests_NodeVisitor_OptimizerTest extends PHPUnit_Framework_TestCase
|
||||
class Twig_Tests_NodeVisitor_OptimizerTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
public function testRenderBlockOptimizer()
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class Twig_Tests_ParserTest extends PHPUnit_Framework_TestCase
|
||||
class Twig_Tests_ParserTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @expectedException Twig_Error_Syntax
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
abstract class Twig_Tests_Profiler_Dumper_AbstractTest extends PHPUnit_Framework_TestCase
|
||||
abstract class Twig_Tests_Profiler_Dumper_AbstractTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected function getProfile()
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Twig_Tests_Profiler_ProfileTest extends PHPUnit_Framework_TestCase
|
||||
class Twig_Tests_Profiler_ProfileTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
public function testConstructor()
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class Twig_Tests_TemplateTest extends PHPUnit_Framework_TestCase
|
||||
class Twig_Tests_TemplateTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @expectedException LogicException
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class Twig_Tests_TemplateWrapperTest extends PHPUnit_Framework_TestCase
|
||||
class Twig_Tests_TemplateWrapperTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
public function testHasGetBlocks()
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Twig_Tests_TokenStreamTest extends PHPUnit_Framework_TestCase
|
||||
class Twig_Tests_TokenStreamTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected static $tokens;
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Twig_Tests_Util_DeprecationCollectorTest extends PHPUnit_Framework_TestCase
|
||||
class Twig_Tests_Util_DeprecationCollectorTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @requires PHP 5.3
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Twig_Test_EscapingTest extends PHPUnit_Framework_TestCase
|
||||
class Twig_Test_EscapingTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* All character encodings supported by htmlspecialchars().
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Twig.
|
||||
*
|
||||
* (c) Fabien Potencier
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
if (PHP_VERSION_ID < 50300) {
|
||||
require_once dirname(__FILE__).'/../lib/Twig/Autoloader.php';
|
||||
Twig_Autoloader::register(true);
|
||||
} else {
|
||||
require __DIR__.'/../vendor/autoload.php';
|
||||
|
||||
if (!class_exists('\PHPUnit_Framework_TestCase') && class_exists('\PHPUnit\Framework\TestCase')) {
|
||||
class_alias('\PHPUnit\Framework\TestCase', '\PHPUnit_Framework_TestCase');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user