simplified tests as min version if now 5.3.3

This commit is contained in:
Fabien Potencier
2017-08-16 08:30:52 +02:00
parent 02042e5126
commit 90a07d166d
30 changed files with 29 additions and 50 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
bootstrap="test/bootstrap.php"
bootstrap="vendor/autoload.php"
>
<testsuites>
<testsuite name="Twig Test Suite">
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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();
+1 -1
View File
@@ -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()
{
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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()
{
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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()
{
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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()
{
+1 -1
View File
@@ -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()
{
+1 -1
View File
@@ -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()
{
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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()
{
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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().
-21
View File
@@ -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');
}
}