mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-05 15:07:11 +00:00
Fix EscaperRuntime namespace
From `Twig\Tests` to `Twig\Tests\Runtime`
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Twig\Tests;
|
||||
namespace Twig\Tests\Runtime;
|
||||
|
||||
/*
|
||||
* This file is part of Twig.
|
||||
@@ -353,7 +353,7 @@ class EscaperRuntimeTest extends TestCase
|
||||
public function testCustomEscaper($expected, $string, $strategy, $charset)
|
||||
{
|
||||
$escaper = new EscaperRuntime();
|
||||
$escaper->setEscaper('foo', 'Twig\Tests\escaper');
|
||||
$escaper->setEscaper('foo', 'Twig\Tests\Runtime\escaper');
|
||||
$this->assertSame($expected, $escaper->escape($string, $strategy, $charset));
|
||||
}
|
||||
|
||||
@@ -381,10 +381,10 @@ class EscaperRuntimeTest extends TestCase
|
||||
public function provideObjectsForEscaping()
|
||||
{
|
||||
return [
|
||||
['<br />', '<br />', ['\Twig\Tests\Extension_TestClass' => ['js']]],
|
||||
['<br />', '\u003Cbr\u0020\/\u003E', ['\Twig\Tests\Extension_TestClass' => ['html']]],
|
||||
['<br />', '<br />', ['\Twig\Tests\Extension_SafeHtmlInterface' => ['js']]],
|
||||
['<br />', '<br />', ['\Twig\Tests\Extension_SafeHtmlInterface' => ['all']]],
|
||||
['<br />', '<br />', ['\Twig\Tests\Runtime\Extension_TestClass' => ['js']]],
|
||||
['<br />', '\u003Cbr\u0020\/\u003E', ['\Twig\Tests\Runtime\Extension_TestClass' => ['html']]],
|
||||
['<br />', '<br />', ['\Twig\Tests\Runtime\Extension_SafeHtmlInterface' => ['js']]],
|
||||
['<br />', '<br />', ['\Twig\Tests\Runtime\Extension_SafeHtmlInterface' => ['all']]],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user