cvs: php-src /ext/reflection/tests 007.phpt
| From: | Marcus Boerger | Date: | Tue, 21 Feb 2006 00:49:51 +0000 |
| Subject: | cvs: php-src /ext/reflection/tests 007.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-36956@lists.php.net to get a copy of this message | ||
helly Tue Feb 21 00:49:51 2006 UTC
Modified files:
/php-src/ext/reflection/tests 007.phpt
Log:
- Fix text expectations
http://cvs.php.net/viewcvs.cgi/php-src/ext/reflection/tests/007.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/reflection/tests/007.phpt
diff -u php-src/ext/reflection/tests/007.phpt:1.1 php-src/ext/reflection/tests/007.phpt:1.2
--- php-src/ext/reflection/tests/007.phpt:1.1 Tue Jan 24 20:19:49 2006
+++ php-src/ext/reflection/tests/007.phpt Tue Feb 21 00:49:51 2006
@@ -158,3 +158,73 @@
}
===DONE===
+--UEXPECTF--
+====>Class_does_not_exist
+__autoload(Class_does_not_exist)
+unicode(41) "Class Class_does_not_exist does not exist"
+====>NoCtor
+====>newInstance()
+object(NoCtor)#%d (0) {
+}
+====>newInstance(25)
+unicode(86) "Class NoCtor does not have a constructor, so you cannot pass any constructor
arguments"
+====>newInstance(25, 42)
+unicode(86) "Class NoCtor does not have a constructor, so you cannot pass any constructor
arguments"
+
+====>WithCtor
+====>newInstance()
+WithCtor::__construct()
+array(0) {
+}
+object(WithCtor)#%d (0) {
+}
+====>newInstance(25)
+WithCtor::__construct()
+array(1) {
+ [0]=>
+ int(25)
+}
+object(WithCtor)#%d (0) {
+}
+====>newInstance(25, 42)
+WithCtor::__construct()
+array(2) {
+ [0]=>
+ int(25)
+ [1]=>
+ int(42)
+}
+object(WithCtor)#%d (0) {
+}
+
+====>WithCtorWithArgs
+====>newInstance()
+
+Warning: Missing argument 1 for WithCtorWithArgs::__construct() in %s007.php on line %d
+
+Notice: Undefined variable: arg in %s007.php on line %d
+WithCtorWithArgs::__construct()
+array(0) {
+}
+object(WithCtorWithArgs)#%d (0) {
+}
+====>newInstance(25)
+WithCtorWithArgs::__construct(25)
+array(1) {
+ [0]=>
+ int(25)
+}
+object(WithCtorWithArgs)#%d (0) {
+}
+====>newInstance(25, 42)
+WithCtorWithArgs::__construct(25)
+array(2) {
+ [0]=>
+ int(25)
+ [1]=>
+ int(42)
+}
+object(WithCtorWithArgs)#%d (0) {
+}
+
+===DONE===