Просмотр исходного кода

update expected error message when loading an invalid ini file into Zend_Config_Ini under PHP 5.3

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@24715 44c647ce-9c0f-0410-b52a-842ac1e357ba
rob 13 лет назад
Родитель
Сommit
97872d62d1
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      tests/Zend/Config/IniTest.php

+ 1 - 1
tests/Zend/Config/IniTest.php

@@ -259,7 +259,7 @@ class Zend_Config_IniTest extends PHPUnit_Framework_TestCase
             $config = new Zend_Config_Ini($this->_iniFileInvalid);
             $config = new Zend_Config_Ini($this->_iniFileInvalid);
             $this->fail('An expected Zend_Config_Exception has not been raised');
             $this->fail('An expected Zend_Config_Exception has not been raised');
         } catch (Zend_Config_Exception $expected) {
         } catch (Zend_Config_Exception $expected) {
-            $this->assertRegexp('/(Error parsing|syntax error, unexpected)/', $expected->getMessage());
+            $this->assertRegexp('/(Error parsing|parse error|syntax error, unexpected)/', $expected->getMessage());
         }
         }
 
 
     }
     }