mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00

Move more low-hanging fruit, creating new directories for the tests for: * comparisons * dynamic calls * error messages * `error_reporting()` * exceptions * `foreach()` * garbage collection * group `use` statements * heredoc and nowdoc * `goto` jumps * late static binding * magic methods * namespaces * numeric literal separators * objects * `settype()` * cleaning of temporary values * `unset()` Additionally, move some tests into the existing subdirectory for `list()` tests. Drive-by fixes of some test numbers in the names of the `goto` tests. Work towards GH-15631
19 lines
387 B
PHP
19 lines
387 B
PHP
--TEST--
|
|
Testing __set implementation with wrong declaration
|
|
--FILE--
|
|
<?php
|
|
|
|
abstract class b {
|
|
abstract function __set($a, $b);
|
|
}
|
|
|
|
class a extends b {
|
|
private function __set($a, $b) {
|
|
}
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: The magic method a::__set() must have public visibility in %s on line %d
|
|
|
|
Fatal error: Access level to a::__set() must be public (as in class b) in %s on line 8
|