]> granicus.if.org Git - php/commitdiff
Fix tests (new error message)
authorFelipe Pena <felipe@php.net>
Sat, 2 Feb 2008 03:20:51 +0000 (03:20 +0000)
committerFelipe Pena <felipe@php.net>
Sat, 2 Feb 2008 03:20:51 +0000 (03:20 +0000)
ext/spl/tests/spl_004.phpt
ext/spl/tests/spl_autoload_001.phpt
ext/spl/tests/spl_autoload_005.phpt
ext/spl/tests/spl_autoload_007.phpt
ext/spl/tests/spl_autoload_008.phpt

index 179ba0f7a61a2d55412fabf4748209a62fd0f900..dc630a19b1a236bd6689f5f82f636a9b39407783 100755 (executable)
@@ -79,7 +79,7 @@ int(4)
 Error: Argument 3 passed to iterator_apply() must be an array, integer given
 Error: iterator_apply() expects parameter 3 to be array, integer given
 NULL
-Error: iterator_apply() expects parameter 2 to be valid callback,%sstring given
+Error: iterator_apply() expects parameter 2 to be a valid callback, function 'non_existing_functon' not found or invalid function name
 NULL
 Error: iterator_apply() expects at most 3 parameters, 4 given
 NULL
index f78e31ab402e4e6fd457e2fefc7358b7f930057e..c6320f96fd677944bc114648267a0501e2025b72 100755 (executable)
@@ -108,15 +108,15 @@ catch(Exception $e)
 --EXPECTF--
 ===EMPTY===
 string(9) ".inc,.php"
-%stestclass.inc
+/home/felipe/php5/ext/spl/tests/testclass.inc
 Exception: Class TestClass could not be loaded
 ===()===
 Exception: Class TestClass could not be loaded
 ===(1)===
 Exception: Class TestClass could not be loaded
 ===(.inc,,.php.inc)===
-%stestclass
-%stestclass.php.inc
+/home/felipe/php5/ext/spl/tests/testclass
+/home/felipe/php5/ext/spl/tests/testclass.php.inc
 Exception: Class TestClass could not be loaded
 ===()===
 Exception: Class TestClass could not be loaded
@@ -131,8 +131,8 @@ bool(false)
 ===LOAD===
 TestFunc1(TestClass)
 TestFunc2(TestClass)
-%stestclass.class.inc
+/home/felipe/php5/ext/spl/tests/testclass.class.inc
 bool(true)
 ===NOFUNCTION===
-Exception: Function 'unavailable_autoload_function' not found
+Exception: Function 'unavailable_autoload_function' not found (function 'unavailable_autoload_function' not found or invalid function name)
 ===DONE===
index 1f946d9794c305364dd8a27e4bf828cbf1430c03..8ba7965f804dbc5018f0f6429421a63b11bd8ecd 100755 (executable)
@@ -50,7 +50,7 @@ catch(Exception $e)
 ===DONE===
 <?php exit(0); ?>
 --EXPECTF--
-Exception: Passed array specifies a non static method but no object
+Exception: Passed array specifies a non static method but no object (non-static method MyAutoLoader::autoLoad() should not be called statically)
 MyAutoLoader::autoLoad(TestClass)
 MyAutoLoader::autoThrow(TestClass)
 Exception: Unavailable
index 66c9c5d83b4715ac1d54a96d4775daae3f3625a4..26a1a2b1fe955be89d378e3a613a66f37684eb16 100755 (executable)
@@ -59,16 +59,16 @@ foreach($funcs as $idx => $func)
 <?php exit(0); ?>
 --EXPECTF--
 string(22) "MyAutoLoader::notExist"
-Function 'MyAutoLoader::notExist' not found
+Function 'MyAutoLoader::notExist' not found (class 'MyAutoLoader' does not have a method 'notexist')
 
 string(22) "MyAutoLoader::noAccess"
-Function 'MyAutoLoader::noAccess' not callable
+Function 'MyAutoLoader::noAccess' not callable (cannot access protected method MyAutoLoader::noAccess())
 
 string(22) "MyAutoLoader::autoLoad"
 ok
 
 string(22) "MyAutoLoader::dynaLoad"
-Function 'MyAutoLoader::dynaLoad' not callable
+Function 'MyAutoLoader::dynaLoad' not callable (non-static method MyAutoLoader::dynaLoad() should not be called statically)
 
 array(2) {
   [0]=>
@@ -76,7 +76,7 @@ array(2) {
   [1]=>
   string(8) "notExist"
 }
-Passed array does not specify an existing static method
+Passed array does not specify an existing static method, (class 'MyAutoLoader' does not have a method 'notexist')
 
 array(2) {
   [0]=>
@@ -84,7 +84,7 @@ array(2) {
   [1]=>
   string(8) "noAccess"
 }
-Passed array does not specify a callable static method
+Passed array does not specify a callable static method, (cannot access protected method MyAutoLoader::noAccess())
 
 array(2) {
   [0]=>
@@ -100,7 +100,7 @@ array(2) {
   [1]=>
   string(8) "dynaLoad"
 }
-Passed array specifies a non static method but no object
+Passed array specifies a non static method but no object (non-static method MyAutoLoader::dynaLoad() should not be called statically)
 
 array(2) {
   [0]=>
@@ -109,7 +109,7 @@ array(2) {
   [1]=>
   string(8) "notExist"
 }
-Passed array does not specify an existing method
+Passed array does not specify an existing method, (class 'MyAutoLoader' does not have a method 'notexist')
 
 array(2) {
   [0]=>
@@ -118,7 +118,7 @@ array(2) {
   [1]=>
   string(8) "noAccess"
 }
-Passed array does not specify a callable method
+Passed array does not specify a callable method, (cannot access protected method MyAutoLoader::noAccess())
 
 array(2) {
   [0]=>
index bafd26d877bd362b41803c5947ff5a43d0be57bd..4a5090e08b6164d7d3b45d2033344790c2617742 100755 (executable)
@@ -82,7 +82,7 @@ Exception: Bla
 int(0)
 ====2====
 string(22) "MyAutoLoader::dynaLoad"
-LogicException: Function 'MyAutoLoader::dynaLoad' not callable
+LogicException: Function 'MyAutoLoader::dynaLoad' not callable (non-static method MyAutoLoader::dynaLoad() should not be called statically)
 int(0)
 ====3====
 array(2) {
@@ -102,7 +102,7 @@ array(2) {
   [1]=>
   string(8) "dynaLoad"
 }
-LogicException: Passed array specifies a non static method but no object
+LogicException: Passed array specifies a non static method but no object (non-static method MyAutoLoader::dynaLoad() should not be called statically)
 int(0)
 ====5====
 array(2) {