dmitry Mon Mar 27 13:53:19 2006 UTC
Modified files:
/php-src/ext/spl/tests spl_autoload_008.phpt
Log:
Fixed test
http://cvs.php.net/viewcvs.cgi/php-src/ext/spl/tests/spl_autoload_008.phpt?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/spl/tests/spl_autoload_008.phpt
diff -u php-src/ext/spl/tests/spl_autoload_008.phpt:1.2
php-src/ext/spl/tests/spl_autoload_008.phpt:1.3
--- php-src/ext/spl/tests/spl_autoload_008.phpt:1.2 Thu Mar 23 12:55:58 2006
+++ php-src/ext/spl/tests/spl_autoload_008.phpt Mon Mar 27 13:53:19 2006
@@ -129,3 +129,65 @@
Exception: Bla
int(0)
===DONE===
+--UEXPECTF--
+====0====
+unicode(10) "MyAutoLoad"
+registered
+MyAutoLoad(NoExistingTestClass)
+Exception: Bla
+int(0)
+====1====
+unicode(22) "MyAutoLoader::autoLoad"
+registered
+MyAutoLoader::autoLoad(NoExistingTestClass)
+Exception: Bla
+int(0)
+====2====
+unicode(22) "MyAutoLoader::dynaLoad"
+LogicException: Function 'MyAutoLoader::dynaLoad' not callable
+int(0)
+====3====
+array(2) {
+ [0]=>
+ unicode(12) "MyAutoLoader"
+ [1]=>
+ unicode(8) "autoLoad"
+}
+registered
+MyAutoLoader::autoLoad(NoExistingTestClass)
+Exception: Bla
+int(0)
+====4====
+array(2) {
+ [0]=>
+ unicode(12) "MyAutoLoader"
+ [1]=>
+ unicode(8) "dynaLoad"
+}
+LogicException: Passed array specifies a non static method but no object
+int(0)
+====5====
+array(2) {
+ [0]=>
+ object(MyAutoLoader)#%d (0) {
+ }
+ [1]=>
+ unicode(8) "autoLoad"
+}
+registered
+MyAutoLoader::autoLoad(NoExistingTestClass)
+Exception: Bla
+int(0)
+====6====
+array(2) {
+ [0]=>
+ object(MyAutoLoader)#%d (0) {
+ }
+ [1]=>
+ unicode(8) "dynaLoad"
+}
+registered
+MyAutoLoader::dynaLoad(NoExistingTestClass)
+Exception: Bla
+int(0)
+===DONE===
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php