Home
last modified time | relevance | path

Searched refs:Countable (Results 1 – 25 of 45) sorted by relevance

12

/PHP-8.3/ext/reflection/tests/types/
H A Dintersection_types.phpt19 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 Ddnf_types.phpt20 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.3/ext/standard/tests/array/
H A Dsizeof_object2.phpt2 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 Dcount_invalid.phpt50 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 Dsizeof_object1.phpt2 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 Dbug43505.phpt7 class Test implements Countable {
/PHP-8.3/ext/spl/tests/
H A Dcountable_count_variation1.phpt2 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 Dcountable_class_basic1.phpt2 SPL: Test shape of interface Countable.
5 echo new ReflectionClass('Countable');
8 Interface [ <internal%s> interface Countable ] {
H A Dbug62262.phpt2 Bug #62262: RecursiveArrayIterator does not implement Countable
6 var_dump(new RecursiveArrayIterator(array()) instanceof Countable);
H A Dspl_002.phpt2 SPL: Countable
6 class Test implements Countable
/PHP-8.3/ext/zend_test/tests/
H A Dzend_internal_class_prop_intersection.phpt9 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 Dinternal_dnf_arguments.phpt27 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.3/ext/simplexml/tests/
H A D037.phpt2 SimpleXML: implement Countable
10 var_dump($sxe instanceof Countable);
/PHP-8.3/ext/intl/tests/
H A Dresourcebundle_countable.phpt2 Test ResourceBundle implements Countable
11 var_dump($r instanceof Countable);
/PHP-8.3/Zend/tests/type_declarations/
H A Dtyped_properties_095.phpt75 uninitialized(Traversable&Countable)
79 uninitialized(Iterator|(Traversable&Countable))
93 uninitialized(Traversable&Countable)
97 uninitialized(Iterator|(Traversable&Countable))
/PHP-8.3/Zend/tests/type_declarations/union_types/
H A Dinternal_trait_use_typed_union.phpt27 uninitialized(Traversable|Countable)
38 string(9) "Countable"
/PHP-8.3/ext/spl/
H A Dspl_heap.stub.php5 class SplPriorityQueue implements Iterator, Countable
96 abstract class SplHeap implements Iterator, Countable
H A Dspl_array.stub.php5 class ArrayObject implements IteratorAggregate, ArrayAccess, Serializable, Countable
93 class ArrayIterator implements SeekableIterator, ArrayAccess, Serializable, Countable
H A Dspl_fixedarray.stub.php5 class SplFixedArray implements IteratorAggregate, ArrayAccess, Countable, JsonSerializable
/PHP-8.3/Zend/tests/type_declarations/intersection_types/invalid_types/
H A Dinvalid_nullable_type.phpt6 function foo(): ?Countable&Iterator {}
/PHP-8.3/Zend/
H A Dzend_weakrefs.stub.php22 final class WeakMap implements ArrayAccess, Countable, IteratorAggregate
/PHP-8.3/Zend/tests/generators/errors/
H A Dcount_error.phpt18 count(): Argument #1 ($value) must be of type Countable|array, Generator given
/PHP-8.3/Zend/tests/
H A Dmagic_methods_011.phpt6 function __set(\Countable $name, $value) {}
/PHP-8.3/ext/intl/resourcebundle/
H A Dresourcebundle.stub.php6 class ResourceBundle implements IteratorAggregate, Countable
/PHP-8.3/ext/standard/tests/general_functions/
H A Dis_countable_with_classes.phpt9 var_dump(is_countable(new class implements Countable {

Completed in 25 milliseconds

12