|
@@ -94,21 +94,21 @@ class MustacheTest extends PHPUnit_Framework_TestCase {
|
|
|
array(
|
|
array(
|
|
|
'charset' => 'UTF-8',
|
|
'charset' => 'UTF-8',
|
|
|
'delimiters' => '<< >>',
|
|
'delimiters' => '<< >>',
|
|
|
- 'pragmas' => array(Mustache::PRAGMA_UNESCAPED)
|
|
|
|
|
|
|
+ 'pragmas' => array(Mustache::PRAGMA_UNESCAPED => true)
|
|
|
),
|
|
),
|
|
|
'UTF-8',
|
|
'UTF-8',
|
|
|
array('<<', '>>'),
|
|
array('<<', '>>'),
|
|
|
- array(Mustache::PRAGMA_UNESCAPED),
|
|
|
|
|
|
|
+ array(Mustache::PRAGMA_UNESCAPED => true),
|
|
|
),
|
|
),
|
|
|
array(
|
|
array(
|
|
|
array(
|
|
array(
|
|
|
'charset' => 'cp866',
|
|
'charset' => 'cp866',
|
|
|
'delimiters' => array('[[[[', ']]]]'),
|
|
'delimiters' => array('[[[[', ']]]]'),
|
|
|
- 'pragmas' => array(Mustache::PRAGMA_UNESCAPED)
|
|
|
|
|
|
|
+ 'pragmas' => array(Mustache::PRAGMA_UNESCAPED => true)
|
|
|
),
|
|
),
|
|
|
'cp866',
|
|
'cp866',
|
|
|
array('[[[[', ']]]]'),
|
|
array('[[[[', ']]]]'),
|
|
|
- array(Mustache::PRAGMA_UNESCAPED),
|
|
|
|
|
|
|
+ array(Mustache::PRAGMA_UNESCAPED => true),
|
|
|
),
|
|
),
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
@@ -117,7 +117,7 @@ class MustacheTest extends PHPUnit_Framework_TestCase {
|
|
|
* @expectedException MustacheException
|
|
* @expectedException MustacheException
|
|
|
*/
|
|
*/
|
|
|
public function testConstructorInvalidPragmaOptionsThrowExceptions() {
|
|
public function testConstructorInvalidPragmaOptionsThrowExceptions() {
|
|
|
- $mustache = new Mustache(null, null, null, array('pragmas' => array('banana phone')));
|
|
|
|
|
|
|
+ $mustache = new Mustache(null, null, null, array('pragmas' => array('banana phone' => true)));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -195,7 +195,7 @@ class MustacheTest extends PHPUnit_Framework_TestCase {
|
|
|
$this->assertEquals('Charlie Chaplin', $m->render(null, array('first_name' => 'Charlie', 'last_name' => 'Chaplin')));
|
|
$this->assertEquals('Charlie Chaplin', $m->render(null, array('first_name' => 'Charlie', 'last_name' => 'Chaplin')));
|
|
|
$this->assertEquals('Zappa, Frank', $m->render('{{last_name}}, {{first_name}}', array('first_name' => 'Frank', 'last_name' => 'Zappa')));
|
|
$this->assertEquals('Zappa, Frank', $m->render('{{last_name}}, {{first_name}}', array('first_name' => 'Frank', 'last_name' => 'Zappa')));
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* @group interpolation
|
|
* @group interpolation
|
|
|
* @dataProvider interpolationData
|
|
* @dataProvider interpolationData
|