1
0
Fork 0
MySQLDumper/tests/unit/application/views/helpers/JsEscapeTest.php

19 Zeilen
434 B
PHP

2011-06-10 21:55:32 +00:00
<?php
require_once 'PHPUnit/Framework/TestCase.php';
require_once 'JsEscape.php';
/**
* @group MsdViewHelper
*/
class JsEscapeTest extends PHPUnit_Framework_TestCase
{
public function testJsEscapeWithQuotes()
{
$expected = "test\'with\'quotes\'";
$viewHelper = new Msd_View_Helper_JsEscape();
$res = $viewHelper->jsEscape("test'with'quotes'");
$this->assertEquals($expected, $res);
}
}