Parcourir la source

Added use of 'assertStringEqualsFile' to unit test.

Taddeus Kroes il y a 14 ans
Parent
commit
85969aca87
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 2
      test/template.php

+ 1 - 2
test/template.php

@@ -58,8 +58,7 @@ class pQueryTemplateTest extends PHPUnit_Framework_TestCase {
 	
 	function test_open_template_file() {
 		$path = $this->templates_folder.$this->file;
-		$content = file_get_contents($path);
-		$this->assertEquals($content, $this->tpl->content, 'template content was not set correctly');
+		$this->assertStringEqualsFile($path, $this->tpl->content, 'template content was not set correctly');
 	}
 	
 	/**