This commit is contained in:
Uwe Tews
2017-07-21 07:00:28 +02:00
parent 5c4871a842
commit 3c0cc4da1c

View File

@@ -64,10 +64,10 @@ class MuteExpectedErrorsTest extends PHPUnit_Smarty
$this->smarty->clearCompiledTemplate('default.tpl'); $this->smarty->clearCompiledTemplate('default.tpl');
$this->smarty->fetch('default.tpl'); $this->smarty->fetch('default.tpl');
$this->assertEquals(Smarty::$_IS_WINDOWS ? 2 : 2, count($this->_errors)); $this->assertEquals(Smarty::$_IS_WINDOWS ? 3 : 3, count($this->_errors));
@filemtime('ckxladanwijicajscaslyxck'); @filemtime('ckxladanwijicajscaslyxck');
$this->assertEquals(Smarty::$_IS_WINDOWS ? 3 : 3, count($this->_errors)); $this->assertEquals(Smarty::$_IS_WINDOWS ? 4 : 4, count($this->_errors));
restore_error_handler(); restore_error_handler();
} }
@@ -112,11 +112,11 @@ class MuteExpectedErrorsTest extends PHPUnit_Smarty
$this->smarty->clearCompiledTemplate('default.tpl'); $this->smarty->clearCompiledTemplate('default.tpl');
$this->smarty->fetch('default.tpl'); $this->smarty->fetch('default.tpl');
$this->assertEquals(Smarty::$_IS_WINDOWS ? 2 : 2, count($this->_errors)); $this->assertEquals(Smarty::$_IS_WINDOWS ? 4 : 4, count($this->_errors));
@filemtime('ckxladanwijicajscaslyxck'); @filemtime('ckxladanwijicajscaslyxck');
$error = array(__FILE__ . ' line ' . (__LINE__ - 1)); $error = array(__FILE__ . ' line ' . (__LINE__ - 1));
$this->assertEquals(Smarty::$_IS_WINDOWS ? 3 : 3, count($this->_errors)); $this->assertEquals(Smarty::$_IS_WINDOWS ? 5 : 5, count($this->_errors));
restore_error_handler(); restore_error_handler();
} }