|
@@ -9,15 +9,21 @@
|
|
* file that was distributed with this source code.
|
|
* file that was distributed with this source code.
|
|
*/
|
|
*/
|
|
|
|
|
|
-namespace Symfony\Bundle\TwigBundle\Tests;
|
|
|
|
|
|
+namespace Symfony\Tests\Bridge\Twig;
|
|
|
|
|
|
-use Symfony\Bundle\TwigBundle\Tests\TestCase;
|
|
|
|
-use Symfony\Bundle\TwigBundle\Extension\TransExtension;
|
|
|
|
|
|
+use Symfony\Bridge\Twig\Extension\TransExtension;
|
|
use Symfony\Component\Translation\Translator;
|
|
use Symfony\Component\Translation\Translator;
|
|
use Symfony\Component\Translation\MessageSelector;
|
|
use Symfony\Component\Translation\MessageSelector;
|
|
|
|
|
|
class TransTest extends TestCase
|
|
class TransTest extends TestCase
|
|
{
|
|
{
|
|
|
|
+ protected function setUp()
|
|
|
|
+ {
|
|
|
|
+ if (!class_exists('Twig_Environment')) {
|
|
|
|
+ $this->markTestSkipped('Twig is not available.');
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* @dataProvider getTransTests
|
|
* @dataProvider getTransTests
|
|
*/
|
|
*/
|