mirror of
https://github.com/Mibew/handlebars.php-helpers.git
synced 2025-03-22 13:41:27 +03:00
Define result for lowercase helper test explicitly
This commit is contained in:
parent
02421b3e28
commit
2b17e963c8
@ -24,7 +24,7 @@ class LowercaseHelperTest extends \PHPUnit_Framework_TestCase
|
|||||||
*
|
*
|
||||||
* @dataProvider convertProvider
|
* @dataProvider convertProvider
|
||||||
*/
|
*/
|
||||||
public function testConvert($string)
|
public function testConvert($string, $result)
|
||||||
{
|
{
|
||||||
$helpers = new \Handlebars\Helpers(array('lowercase' => new LowercaseHelper()));
|
$helpers = new \Handlebars\Helpers(array('lowercase' => new LowercaseHelper()));
|
||||||
$engine = new \Handlebars\Handlebars(array('helpers' => $helpers));
|
$engine = new \Handlebars\Handlebars(array('helpers' => $helpers));
|
||||||
@ -34,7 +34,7 @@ class LowercaseHelperTest extends \PHPUnit_Framework_TestCase
|
|||||||
'{{lowercase str}}',
|
'{{lowercase str}}',
|
||||||
array('str' => $string)
|
array('str' => $string)
|
||||||
),
|
),
|
||||||
strtolower($string)
|
$result
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -44,10 +44,10 @@ class LowercaseHelperTest extends \PHPUnit_Framework_TestCase
|
|||||||
public function convertProvider()
|
public function convertProvider()
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
array('already in lower'),
|
array('already in lowercase', 'already in lowercase'),
|
||||||
array('Mixed Case String'),
|
array('Mixed Case String', 'mixed case string'),
|
||||||
array('ANOther mIxed CASE string'),
|
array('ANOther mIxed CASE string', 'another mixed case string'),
|
||||||
array('STRING IN CAPS'),
|
array('STRING IN CAPS', 'string in caps'),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user