mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 19:36:43 +00:00
Fix compatibility with PHPUnit 8
This commit is contained in:
@@ -5,10 +5,6 @@ cache:
|
|||||||
- vendor
|
- vendor
|
||||||
- $HOME/.composer/cache/files
|
- $HOME/.composer/cache/files
|
||||||
|
|
||||||
env:
|
|
||||||
global:
|
|
||||||
- SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT=1
|
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- phpenv config-rm xdebug.ini || return 0
|
- phpenv config-rm xdebug.ini || return 0
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ class FilesystemTest extends TestCase
|
|||||||
private $directory;
|
private $directory;
|
||||||
private $cache;
|
private $cache;
|
||||||
|
|
||||||
protected function setUp()
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
$nonce = hash('sha256', uniqid(mt_rand(), true));
|
$nonce = hash('sha256', uniqid(mt_rand(), true));
|
||||||
$this->classname = '__Twig_Tests_Cache_FilesystemTest_Template_'.$nonce;
|
$this->classname = '__Twig_Tests_Cache_FilesystemTest_Template_'.$nonce;
|
||||||
@@ -29,7 +29,7 @@ class FilesystemTest extends TestCase
|
|||||||
$this->cache = new FilesystemCache($this->directory);
|
$this->cache = new FilesystemCache($this->directory);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function tearDown()
|
protected function tearDown(): void
|
||||||
{
|
{
|
||||||
if (file_exists($this->directory)) {
|
if (file_exists($this->directory)) {
|
||||||
FilesystemHelper::removeDir($this->directory);
|
FilesystemHelper::removeDir($this->directory);
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ class SandboxTest extends TestCase
|
|||||||
protected static $params;
|
protected static $params;
|
||||||
protected static $templates;
|
protected static $templates;
|
||||||
|
|
||||||
protected function setUp()
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
self::$params = [
|
self::$params = [
|
||||||
'name' => 'Fabien',
|
'name' => 'Fabien',
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ class TokenStreamTest extends TestCase
|
|||||||
{
|
{
|
||||||
protected static $tokens;
|
protected static $tokens;
|
||||||
|
|
||||||
protected function setUp()
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
self::$tokens = [
|
self::$tokens = [
|
||||||
new Token(Token::TEXT_TYPE, 1, 1),
|
new Token(Token::TEXT_TYPE, 1, 1),
|
||||||
|
|||||||
Reference in New Issue
Block a user