ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
LegacyIntegrationTest.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of Twig.
5  *
6  * (c) Fabien Potencier
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11 
13 {
14  public function getExtensions()
15  {
16  return array(
18  );
19  }
20 
21  public function getFixturesDir()
22  {
23  return dirname(__FILE__).'/LegacyFixtures/';
24  }
25 
26  public function getTests($name, $legacyTests = false)
27  {
28  if (!$legacyTests) {
29  return array(array('', '', '', array(), '', array()));
30  }
31 
32  return parent::getTests($name, true);
33  }
34 }
35 
37 {
38  public function getTests()
39  {
40  return array(
41  'multi word' => new Twig_Test_Method($this, 'is_multi_word'),
42  );
43  }
44 
45  public function is_multi_word($value)
46  {
47  return false !== strpos($value, ' ');
48  }
49 
50  public function getName()
51  {
52  return 'legacy_integration_test';
53  }
54 }
Represents a method template test.
Definition: Method.php:21
Integration test helper.
if($format !==null) $name
Definition: metadata.php:146
getName()
Returns the name of the extension.
Create styles array
The data for the language used.
getTests()
Returns a list of tests to add to the existing list.
getTests($name, $legacyTests=false)