summaryrefslogtreecommitdiff
path: root/tests/classes
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-10-01 13:20:42 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-10-02 10:34:08 +0200
commit2f92957fd3d8d87e73013c016e479451db0c6a1e (patch)
treeca7d2d34038d7e1fb0e511962ad0db5e57390c63 /tests/classes
parent2041c9abf5fdaa9d0e632e5e6e4f3488159c9bfe (diff)
downloadphp-git-2f92957fd3d8d87e73013c016e479451db0c6a1e.tar.gz
Convert some notices to warnings
Part of https://wiki.php.net/rfc/engine_warnings.
Diffstat (limited to 'tests/classes')
-rw-r--r--tests/classes/bug27468.phpt2
-rw-r--r--tests/classes/constants_basic_001.phpt2
-rw-r--r--tests/classes/constants_basic_002.phpt2
-rw-r--r--tests/classes/static_properties_003.phpt2
4 files changed, 4 insertions, 4 deletions
diff --git a/tests/classes/bug27468.phpt b/tests/classes/bug27468.phpt
index 58a7b6cb16..1c54fa61ce 100644
--- a/tests/classes/bug27468.phpt
+++ b/tests/classes/bug27468.phpt
@@ -11,7 +11,7 @@ new foo();
echo 'OK';
?>
--EXPECTF--
-Notice: Undefined property: foo::$x in %sbug27468.php on line 4
+Warning: Undefined property: foo::$x in %s on line %d
Warning: Invalid argument supplied for foreach() in %sbug27468.php on line 4
OK
diff --git a/tests/classes/constants_basic_001.phpt b/tests/classes/constants_basic_001.phpt
index 38da2dfde0..af9915c277 100644
--- a/tests/classes/constants_basic_001.phpt
+++ b/tests/classes/constants_basic_001.phpt
@@ -55,7 +55,7 @@ Class constant declarations
echo "\nYou should not see this.";
?>
--EXPECTF--
-Notice: Undefined variable: undef in %s on line 5
+Warning: Undefined variable: undef in %s on line %d
Attempt to access various kinds of class constants:
int(1)
diff --git a/tests/classes/constants_basic_002.phpt b/tests/classes/constants_basic_002.phpt
index def661ec45..88c66aaee8 100644
--- a/tests/classes/constants_basic_002.phpt
+++ b/tests/classes/constants_basic_002.phpt
@@ -23,7 +23,7 @@ string(5) "hello"
Fail to read class constant from instance.
-Notice: Undefined property: aclass::$myConst in %s on line 12
+Warning: Undefined property: aclass::$myConst in %s on line %d
NULL
Class constant not visible in object var_dump.
diff --git a/tests/classes/static_properties_003.phpt b/tests/classes/static_properties_003.phpt
index 89c26d3dd3..64641c47c5 100644
--- a/tests/classes/static_properties_003.phpt
+++ b/tests/classes/static_properties_003.phpt
@@ -34,7 +34,7 @@ Notice: Accessing static property C::$x as non static in %s on line 11
Notice: Accessing static property C::$x as non static in %s on line 12
-Notice: Undefined property: C::$x in %s on line 12
+Warning: Undefined property: C::$x in %s on line %d
Notice: Accessing static property C::$x as non static in %s on line 13