strict comparisons

This commit is contained in:
Dariusz Rumiński
2014-09-06 01:23:34 +02:00
parent 1319f0486d
commit 6b5a695e9d
2 changed files with 4 additions and 4 deletions
@@ -51,7 +51,7 @@ class Mustache_Test_Functional_ExamplesTest extends PHPUnit_Framework_TestCase
$handle = opendir($path);
while (($file = readdir($handle)) !== false) {
if ($file == '.' || $file == '..') {
if ($file === '.' || $file === '..') {
continue;
}
@@ -84,7 +84,7 @@ class Mustache_Test_Functional_ExamplesTest extends PHPUnit_Framework_TestCase
$fullpath = $path . '/' . $file;
$info = pathinfo($fullpath);
if (is_dir($fullpath) && $info['basename'] == 'partials') {
if (is_dir($fullpath) && $info['basename'] === 'partials') {
// load partials
$partials = $this->loadPartials($fullpath);
} elseif (is_file($fullpath)) {
@@ -124,7 +124,7 @@ class Mustache_Test_Functional_ExamplesTest extends PHPUnit_Framework_TestCase
$handle = opendir($path);
while (($file = readdir($handle)) !== false) {
if ($file == '.' || $file == '..') {
if ($file === '.' || $file === '..') {
continue;
}
+1 -1
View File
@@ -29,7 +29,7 @@ abstract class Mustache_Test_FunctionalTestCase extends PHPUnit_Framework_TestCa
$path = rtrim($path, '/') . '/';
$handle = opendir($path);
while (($file = readdir($handle)) !== false) {
if ($file == '.' || $file == '..') {
if ($file === '.' || $file === '..') {
continue;
}