mirror of
https://github.com/yiisoft/yii.git
synced 2026-03-04 23:34:05 +01:00
#1109: Fixed "js:" encoding BC-break in CHtml::ajax() and related methods introduced in 1.1.11, added tests
This commit is contained in:
12
tests/framework/web/helpers/CJavaScriptExpressionTest.php
Normal file
12
tests/framework/web/helpers/CJavaScriptExpressionTest.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* CJavaScriptExpressionTest
|
||||
*/
|
||||
class CJavaScriptExpressionTest extends CTestCase
|
||||
{
|
||||
public function testToString()
|
||||
{
|
||||
$expression=new CJavaScriptExpression("function(){return \"Hello, world!\";}");
|
||||
$this->assertEquals('function(){return "Hello, world!";}', $expression);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user