fixed name of clone test, added more assertions.

This commit is contained in:
Justin Hileman
2010-05-22 22:41:50 -04:00
parent df1b3c8e7d
commit 619a48674b
+5 -1
View File
@@ -174,7 +174,7 @@ class MustacheTest extends PHPUnit_Framework_TestCase {
* @access public
* @return void
*/
public function testClone($class, $template, $output) {
public function test__clone($class, $template, $output) {
$m = new $class;
$n = clone $m;
@@ -184,6 +184,10 @@ class MustacheTest extends PHPUnit_Framework_TestCase {
$this->assertEquals($m->render($template), $n_output);
$this->assertEquals($n_output, $o->render($template));
$this->assertNotSame($m, $n);
$this->assertNotSame($n, $o);
$this->assertNotSame($m, $o);
}
/**