4 * This file is part of Twig.
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 class Twig_Tests_LegacyIntegrationTest extends Twig_Test_IntegrationTestCase
14 public function getExtensions()
17 new LegacyTwigTestExtension(),
21 public function getFixturesDir()
23 return dirname(__FILE__).'/LegacyFixtures/';
26 public function getTests($name, $legacyTests = false)
29 return array(array('', '', '', array(), '', array()));
32 return parent::getTests($name, true);
36 class LegacyTwigTestExtension extends Twig_Extension
38 public function getTests()
41 'multi word' => new Twig_Test_Method($this, 'is_multi_word'),
45 public function is_multi_word($value)
47 return false !== strpos($value, ' ');
50 public function getName()
52 return 'legacy_integration_test';