diff options
Diffstat (limited to 'Zend/tests/026.phpt')
-rw-r--r-- | Zend/tests/026.phpt | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Zend/tests/026.phpt b/Zend/tests/026.phpt index b3088e8473..0524487c5f 100644 --- a/Zend/tests/026.phpt +++ b/Zend/tests/026.phpt @@ -13,13 +13,16 @@ $test = new foo; $test->a()->a; print "ok\n"; -$test->a()->a = 1; +try { + $test->a()->a = 1; +} catch (Error $e) { + echo $e->getMessage(), "\n"; +} print "ok\n"; ?> --EXPECTF-- -Notice: Trying to get property 'a' of non-object in %s on line %d +Warning: Trying to get property 'a' of non-object in %s on line %d ok - -Warning: Creating default object from empty value in %s on line %d +Attempt to assign property 'a' of non-object ok |