/php-src/Zend/tests/ |
H A D | namespace_name_reserved_keywords.phpt | 7 function test() { 13 function test() { 19 function test() { 26 use function fn\test as test2; 27 use function self\test as test3;
|
H A D | objects_021.phpt | 9 public function __construct() { 13 public function __set($a, $b) { 17 public function __get($a) { 21 public function __call($a, $b) { 26 function x() {
|
H A D | bug49269.phpt | 8 function valid(): bool 12 function current(): mixed {return $this->n;} 13 function next(): void {$this->n++;} 14 function key(): mixed { } 15 function rewind(): void {$this->n = 0;}
|
H A D | dereference_001.phpt | 7 function a() { 12 function b() { 20 public function test() { 25 function c() { 30 function d() { 36 function e() {
|
H A D | closure_062.phpt | 7 public function method() { 9 $fn = function() { 14 $fn = static function() { 19 $fn = function() { 25 public static function staticMethod() { 27 $fn = function() { 32 $fn = static function() { 37 $fn = function() {
|
/php-src/ext/spl/tests/ |
H A D | bug71202.phpt | 2 Bug #71202 (Autoload function registered by another not activated immediately) 6 function inner_autoload ($name){ 9 function __construct(){ 15 function __construct() { 22 spl_autoload_register(function ($name) {
|
H A D | regexiterator_getpregflags.phpt | 11 function current (): mixed { return null; } 12 function key ( ): mixed { return ""; } 13 function next ( ): void {} 14 function rewind ( ): void {} 15 function valid ( ): bool {}
|
H A D | iterator_003.phpt | 11 public function __construct($id, $name) 17 public function __toString() 22 public function getId() 32 public function __construct(ArrayObject $students, Student $other) 38 public function accept(): bool 49 public function __construct() 54 public function add(Student $student) 61 public function contains(Student $student) 72 public function getIterator(): Traversable {
|
/php-src/ext/opcache/tests/jit/ |
H A D | assign_dim_004.phpt | 10 function offsetExists($x): bool {} 11 function offsetGet($x): mixed {} 12 function offsetSet($x, $y): void { 15 function offsetUnset($x): void {} 17 function test() {
|
/php-src/Zend/tests/traits/ |
H A D | bug55355.phpt | 6 // A trait that has a abstract function 8 function bar() { 11 abstract function foo(); 17 function foo() {} 25 function foo() {} 32 function foo() {}
|
/php-src/Zend/tests/type_declarations/intersection_types/variance/ |
H A D | valid5.phpt | 14 public function foo(TestOne|TestTwo $param): X&Y; 19 public function foo(X&Y $param): TestOne|TestTwo; 24 public function foo(X $param): TestTwo; 29 public function foo(Y $param): TestOne; 34 public function foo(X $param): TestTwo; 39 public function foo(Y $param): TestOne;
|
/php-src/ext/ctype/tests/ |
H A D | 002.phpt | 11 function ctype_test_002($function) { 16 if($function($c)) $n1++; 17 if($function("$c$c$c")) $n2++; 18 if($function("1-$c$c$c-x")) $n3++; 20 print "$function $n1 $n2 $n3\n";
|
/php-src/Zend/tests/anon/ |
H A D | 004.phpt | 8 public function __construct($data) { 12 public function getArrayAccess() { 15 public function offsetGet($offset): mixed { return $this->data[$offset]; } 16 public function offsetSet($offset, $data): void { $this->data[$offset] = $data; } 17 public function offsetUnset($offset): void { unset($this->data[$offset]); } 18 … public function offsetExists($offset): bool { return isset($this->data[$offset]); }
|
/php-src/ext/session/tests/user_session_module/ |
H A D | bug80889a.phpt | 11 function ($savePath, $sessionName) { 14 function () { 17 function ($id) { 20 function ($id, $data) { 23 function ($id) { 26 function ($maxlifetime) {
|
H A D | bug60634_error_2.phpt | 15 function open($save_path, $session_name): bool { 19 function close(): bool { 24 function read($id): string|false { 28 function write($id, $session_data): bool { 33 function destroy($id): bool { 37 function gc($maxlifetime): int { 53 #0 [internal function]: MySessionHandler->write('%s', '')
|
/php-src/ext/pdo_sqlite/tests/subclasses/ |
H A D | stream_test.inc | 12 public function stream_open($path, $mode, $options, &$opened_path) 18 public function stream_read($count) 25 public function stream_write($data) 30 public function stream_stat() 35 public function stream_tell() 40 public function stream_eof()
|
/php-src/Zend/tests/type_declarations/variance/ |
H A D | class_order_autoload5.phpt | 7 spl_autoload_register(function($class) { 10 public function method(): X {} 15 public function method(): Y {} 20 public function method(): Q {} 25 public function method(): R {} 30 public function method(): A {} 35 public function method(): B {}
|
/php-src/ext/date/tests/ |
H A D | gmdate_variation11.phpt | 2 Test gmdate() function : usage variation - Passing Full Date/Time format options to format argument. 11 echo "\n-- Testing gmdate() function with ISO 8601 date format --\n"; 15 echo "\n-- Testing gmdate() function with RFC 2822 date format --\n"; 19 echo "\n-- Testing gmdate() function with seconds since Unix Epoch format --\n"; 27 -- Testing gmdate() function with ISO 8601 date format -- 31 -- Testing gmdate() function with RFC 2822 date format -- 35 -- Testing gmdate() function with seconds since Unix Epoch format --
|
/php-src/ext/standard/tests/class_object/ |
H A D | get_class_methods_basic_003.phpt | 2 Test get_class_methods() function : basic functionality 10 public function pubI(); 15 public function pubI() {} 17 private function privC() {} 18 protected function protC() {} 19 public function pubC() {} 21 public static function testFromC() {
|
/php-src/ext/reflection/tests/ |
H A D | gh10623.phpt | 10 $closure = function($var) use($data1) {}; 13 $closure = function($var, ...$variadic) {}; 16 $closure = function($var, ...$variadic) use($data1) {}; 19 $closure = function($var, ...$variadic) use($data1, $data2, $data3) {}; 22 $closure = function(...$variadic) use($data1) {}; 25 $closure = function($var, $var2, ...$variadic) {}; 28 $closure = function($var, $var2, $var3, ...$variadic) use($data1, $data2, $data3) {};
|
/php-src/ext/standard/tests/array/ |
H A D | array_fill_keys_variation1.phpt | 2 Test array_fill_keys() function : variation of parameter 15 public function __toString() { return "Class A object"; } 20 echo "\n-- Testing array_fill_keys() function with empty arguments --\n"; 23 echo "\n-- Testing array_fill_keys() function with keyed array --\n"; 27 echo "\n-- Testing array_fill_keys() function with mixed array --\n"; 37 -- Testing array_fill_keys() function with empty arguments -- 41 -- Testing array_fill_keys() function with keyed array -- 53 -- Testing array_fill_keys() function with mixed array --
|
H A D | array_fill_keys_variation2.phpt | 2 Test array_fill_keys() function : variation of parameter 18 public function __toString() { return "Class A object"; } 23 echo "\n-- Testing array_fill_keys() function with reference value --\n"; 27 echo "\n-- Testing array_fill_keys() function with reference keys --\n"; 35 echo "\n-- Testing array_fill_keys() function with reference array input --\n"; 46 -- Testing array_fill_keys() function with reference value -- 54 -- Testing array_fill_keys() function with reference keys -- 68 -- Testing array_fill_keys() function with reference array input --
|
/php-src/ext/opcache/tests/ |
H A D | bug78015.phpt | 10 function test1() { 17 function test2() { 24 function test3() { 31 function test4() { 38 function test5() { 45 function test6() { 53 function test7() { 63 function test8($array) { 76 function test9() {
|
/php-src/tests/lang/ |
H A D | returnByReference.004.phpt | 6 static function returnConstantByValue() { 10 static function &returnConstantByRef() { 14 static function &returnVariableByRef() { 19 echo "\n---> 1. Trying to assign by reference the return value of a function that returns by value:… 26 echo "\n---> 2. Trying to assign by reference the return value of a function that returns a constan… 33 echo "\n---> 3. Trying to assign by reference the return value of a function that returns by ref:\n… 42 ---> 1. Trying to assign by reference the return value of a function that returns by value: 48 ---> 2. Trying to assign by reference the return value of a function that returns a constant by ref: 54 ---> 3. Trying to assign by reference the return value of a function that returns by ref:
|
H A D | returnByReference.005.phpt | 6 function returnConstantByValue() { 10 function &returnConstantByRef() { 14 static function &returnVariableByRef() { 20 echo "\n---> 1. Trying to assign by reference the return value of a function that returns by value:… 27 echo "\n---> 2. Trying to assign by reference the return value of a function that returns a constan… 34 echo "\n---> 3. Trying to assign by reference the return value of a function that returns by ref:\n… 43 ---> 1. Trying to assign by reference the return value of a function that returns by value: 49 ---> 2. Trying to assign by reference the return value of a function that returns a constant by ref: 55 ---> 3. Trying to assign by reference the return value of a function that returns by ref:
|