/PHP-8.4/ext/reflection/tests/types/ |
H A D | intersection_types.phpt | 19 public X&Y&Countable $prop; 31 class x implements Y, Countable { 42 Type X&Y&Z&Traversable&Countable: 56 Name: Countable 57 String: Countable 59 Type X&Y&Countable: 67 Name: Countable 68 String: Countable 70 Type X&Y&Countable: 78 Name: Countable [all …]
|
H A D | dnf_types.phpt | 20 function test1(): (X&Y)|(Z&Traversable)|Countable { } 23 public (X&Y)|Countable $prop; 35 class x implements Y, Countable { 61 Name: Countable 62 String: Countable 64 Type (X&Y)|Countable is ReflectionUnionType: 72 Name: Countable 73 String: Countable 75 Type (X&Y)|Countable is ReflectionUnionType: 83 Name: Countable [all …]
|
/PHP-8.4/ext/standard/tests/array/ |
H A D | sizeof_object2.phpt | 2 Test sizeof() function : object functionality - objects without Countable interface 7 echo "--- Testing sizeof() with objects which doesn't implement Countable interface ---\n"; 104 --- Testing sizeof() with objects which doesn't implement Countable interface --- 106 Default Mode: sizeof(): Argument #1 ($value) must be of type Countable|array, test given 107 COUNT_NORMAL Mode: sizeof(): Argument #1 ($value) must be of type Countable|array, test given 108 COUNT_RECURSIVE Mode: sizeof(): Argument #1 ($value) must be of type Countable|array, test given 110 Default Mode: sizeof(): Argument #1 ($value) must be of type Countable|array, test1 given 111 COUNT_NORMAL Mode: sizeof(): Argument #1 ($value) must be of type Countable|array, test1 given 114 Default Mode: sizeof(): Argument #1 ($value) must be of type Countable|array, test2 given 115 COUNT_NORMAL Mode: sizeof(): Argument #1 ($value) must be of type Countable|array, test2 given [all …]
|
H A D | count_invalid.phpt | 50 count(): Argument #1 ($value) must be of type Countable|array, null given 51 count(): Argument #1 ($value) must be of type Countable|array, string given 52 count(): Argument #1 ($value) must be of type Countable|array, int given 53 count(): Argument #1 ($value) must be of type Countable|array, true given 54 count(): Argument #1 ($value) must be of type Countable|array, false given 55 count(): Argument #1 ($value) must be of type Countable|array, stdClass given
|
H A D | sizeof_object1.phpt | 2 Test sizeof() function : object functionality - object with Countable interface 7 echo "-- Testing sizeof() with an object which implements Countable interface --\n"; 8 class sizeof_class implements Countable 33 -- Testing sizeof() with an object which implements Countable interface --
|
H A D | bug43505.phpt | 7 class Test implements Countable {
|
/PHP-8.4/ext/spl/tests/ |
H A D | countable_count_variation1.phpt | 2 SPL: Countable::count() with wrong return types and exception. 6 Class returnNull implements Countable { 12 Class returnString implements Countable { 19 Class returnObject implements Countable { 26 Class returnArray implements Countable { 33 Class throwException implements Countable {
|
H A D | countable_class_basic1.phpt | 2 SPL: Test shape of interface Countable. 5 echo new ReflectionClass('Countable'); 8 Interface [ <internal%s> interface Countable ] {
|
H A D | bug62262.phpt | 2 Bug #62262: RecursiveArrayIterator does not implement Countable 6 var_dump(new RecursiveArrayIterator(array()) instanceof Countable);
|
H A D | spl_002.phpt | 2 SPL: Countable 6 class Test implements Countable
|
/PHP-8.4/ext/zend_test/tests/ |
H A D | zend_internal_class_prop_intersection.phpt | 9 class C implements Countable { 15 class I extends EmptyIterator implements Countable { 44 …sign EmptyIterator to property _ZendTestClass::$classIntersectionProp of type Traversable&Countable 45 Cannot assign C to property _ZendTestClass::$classIntersectionProp of type Traversable&Countable
|
H A D | internal_dnf_arguments.phpt | 27 string(32) "Iterator|(Traversable&Countable)" 28 string(32) "Iterator|(Traversable&Countable)" 29 …nf_arguments(): Argument #1 ($arg) must be of type Iterator|(Traversable&Countable), stdClass given
|
/PHP-8.4/ext/simplexml/tests/ |
H A D | 037.phpt | 2 SimpleXML: implement Countable 10 var_dump($sxe instanceof Countable);
|
/PHP-8.4/ext/intl/tests/ |
H A D | resourcebundle_countable.phpt | 2 Test ResourceBundle implements Countable 11 var_dump($r instanceof Countable);
|
/PHP-8.4/Zend/tests/type_declarations/ |
H A D | typed_properties_095.phpt | 75 uninitialized(Traversable&Countable) 79 uninitialized(Iterator|(Traversable&Countable)) 93 uninitialized(Traversable&Countable) 97 uninitialized(Iterator|(Traversable&Countable))
|
/PHP-8.4/Zend/tests/type_declarations/union_types/ |
H A D | internal_trait_use_typed_union.phpt | 27 uninitialized(Traversable|Countable) 38 string(9) "Countable"
|
/PHP-8.4/ext/spl/ |
H A D | spl_heap.stub.php | 5 class SplPriorityQueue implements Iterator, Countable 87 abstract class SplHeap implements Iterator, Countable
|
H A D | spl_array.stub.php | 5 class ArrayObject implements IteratorAggregate, ArrayAccess, Serializable, Countable 87 class ArrayIterator implements SeekableIterator, ArrayAccess, Serializable, Countable
|
H A D | spl_fixedarray.stub.php | 5 class SplFixedArray implements IteratorAggregate, ArrayAccess, Countable, JsonSerializable
|
/PHP-8.4/Zend/tests/type_declarations/intersection_types/invalid_types/ |
H A D | invalid_nullable_type.phpt | 6 function foo(): ?Countable&Iterator {}
|
/PHP-8.4/Zend/ |
H A D | zend_weakrefs.stub.php | 22 final class WeakMap implements ArrayAccess, Countable, IteratorAggregate
|
/PHP-8.4/Zend/tests/generators/errors/ |
H A D | count_error.phpt | 18 count(): Argument #1 ($value) must be of type Countable|array, Generator given
|
/PHP-8.4/Zend/tests/ |
H A D | magic_methods_011.phpt | 6 function __set(\Countable $name, $value) {}
|
/PHP-8.4/ext/intl/resourcebundle/ |
H A D | resourcebundle.stub.php | 6 class ResourceBundle implements IteratorAggregate, Countable
|
/PHP-8.4/ext/standard/tests/general_functions/ |
H A D | is_countable_with_classes.phpt | 9 var_dump(is_countable(new class implements Countable {
|