Add a test for function creation. I can't manage to make it fail when needed. Still I'll commit anyway !
This commit is contained in:
parent
f7ecb87af5
commit
e96eaf86e5
3 changed files with 31 additions and 16 deletions
|
@ -7,6 +7,7 @@
|
|||
*/
|
||||
|
||||
require_once (dirname(__FILE__) . "/config_test.php");
|
||||
require_once (dirname(__FILE__) . "/../resources/doT-php/doT.php");
|
||||
require_once (dirname(__FILE__) . "/../base.php");
|
||||
|
||||
class BaseTest extends PHPUnit_Framework_TestCase
|
||||
|
@ -17,6 +18,12 @@ class BaseTest extends PHPUnit_Framework_TestCase
|
|||
$this->assertEquals ("?key=value&db=0", addURLParameter ("?key=value", "db", "0"));
|
||||
$this->assertEquals ("?key=value&otherKey=&db=0", addURLParameter ("?key=value&otherKey", "db", "0"));
|
||||
}
|
||||
|
||||
/* For now I can't manager to make phpunit fail if a syntax error happens ... */
|
||||
public function testServerSideRender ()
|
||||
{
|
||||
$this->assertNull (serverSideRender (NULL));
|
||||
}
|
||||
|
||||
public function testLocalize ()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue