Commit 85969aca authored by Taddeus Kroes's avatar Taddeus Kroes

Added use of 'assertStringEqualsFile' to unit test.

parent 9d52a569
...@@ -58,8 +58,7 @@ class pQueryTemplateTest extends PHPUnit_Framework_TestCase { ...@@ -58,8 +58,7 @@ class pQueryTemplateTest extends PHPUnit_Framework_TestCase {
function test_open_template_file() { function test_open_template_file() {
$path = $this->templates_folder.$this->file; $path = $this->templates_folder.$this->file;
$content = file_get_contents($path); $this->assertStringEqualsFile($path, $this->tpl->content, 'template content was not set correctly');
$this->assertEquals($content, $this->tpl->content, 'template content was not set correctly');
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment