You are here

class LegacyTwigTestExtension in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/test/Twig/Tests/LegacyIntegrationTest.php \LegacyTwigTestExtension

Hierarchy

Expanded class hierarchy of LegacyTwigTestExtension

File

vendor/twig/twig/test/Twig/Tests/LegacyIntegrationTest.php, line 36

View source
class LegacyTwigTestExtension extends Twig_Extension {
  public function getTests() {
    return array(
      'multi word' => new Twig_Test_Method($this, 'is_multi_word'),
    );
  }
  public function is_multi_word($value) {
    return false !== strpos($value, ' ');
  }
  public function getName() {
    return 'legacy_integration_test';
  }

}

Members