@@ -139,7 +139,14 @@ $o = zend_object_init_with_constructor("TestUserWithConstructorNoParams");
139139var_dump ($ o );
140140unset($ o );
141141?>
142- --EXPECT--
142+ --EXPECTF--
143+ Deprecated: Returning a value from a constructor is deprecated in %s on line %d
144+
145+ Deprecated: Returning a value from a constructor is deprecated in %s on line %d
146+
147+ Deprecated: Returning a value from a constructor is deprecated in %s on line %d
148+
149+ Deprecated: Returning a value from a constructor is deprecated in %s on line %d
143150Testing impossible initializations
144151Error: Cannot instantiate interface _ZendTestInterface
145152Error: Cannot instantiate trait _ZendTestTrait
@@ -152,14 +159,14 @@ Testing param passing
152159ArgumentCountError: Too few arguments to function TestUserWithConstructorArgs::__construct(), 0 passed and exactly 2 expected
153160TypeError: TestUserWithConstructorArgs::__construct(): Argument #1 ($int_param) must be of type int, string given
154161Error: Unknown named parameter $unused_param
155- object(TestUserWithConstructorArgs)#1 (0) {
162+ object(TestUserWithConstructorArgs)#%d (0) {
156163}
157164Destructor for TestUserWithConstructorArgs
158165Passing too many args to constructor
159- object(TestUserWithConstructorArgs)#1 (0) {
166+ object(TestUserWithConstructorArgs)#%d (0) {
160167}
161168Destructor for TestUserWithConstructorArgs
162169Testing class with defined constructor and no params
163- object(TestUserWithConstructorNoParams)#1 (0) {
170+ object(TestUserWithConstructorNoParams)#%d (0) {
164171}
165172Destructor for TestUserWithConstructorNoParams
0 commit comments