Home
last modified time | relevance | path

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

12

/PHP-8.1/ext/reflection/tests/
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 …]
/PHP-8.1/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, bool given
54 count(): Argument #1 ($value) must be of type Countable|array, bool 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 {
H A Dcount_recursive.phpt55 echo "\n-- Testing count() on objects with Countable interface --\n";
56 class count_class implements Countable {
142 -- Testing count() on objects with Countable interface --
/PHP-8.1/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.1/ext/simplexml/tests/
H A D037.phpt2 SimpleXML: implement Countable
10 var_dump($sxe instanceof Countable);
/PHP-8.1/ext/intl/tests/
H A Dresourcebundle_countable.phpt2 Test ResourceBundle implements Countable
11 var_dump($r instanceof Countable);
/PHP-8.1/ext/spl/
H A Dspl_heap.stub.php5 class SplPriorityQueue implements Iterator, Countable
80 abstract class SplHeap implements Iterator, Countable
H A Dspl_array.stub.php5 class ArrayObject implements IteratorAggregate, ArrayAccess, Serializable, Countable
82 class ArrayIterator implements SeekableIterator, ArrayAccess, Serializable, Countable
H A Dspl_fixedarray.stub.php5 class SplFixedArray implements IteratorAggregate, ArrayAccess, Countable, JsonSerializable
H A Dspl_dllist.stub.php5 class SplDoublyLinkedList implements Iterator, Countable, ArrayAccess, Serializable
/PHP-8.1/Zend/tests/type_declarations/intersection_types/invalid_types/
H A Dinvalid_nullable_type.phpt6 function foo(): ?Countable&Iterator {}
/PHP-8.1/Zend/
H A Dzend_weakrefs.stub.php22 final class WeakMap implements ArrayAccess, Countable, IteratorAggregate
H A Dzend_interfaces.stub.php58 interface Countable interface
/PHP-8.1/Zend/tests/generators/errors/
H A Dcount_error.phpt18 count(): Argument #1 ($value) must be of type Countable|array, Generator given
/PHP-8.1/Zend/tests/
H A Dmagic_methods_011.phpt6 function __set(\Countable $name, $value) {}
/PHP-8.1/ext/intl/resourcebundle/
H A Dresourcebundle.stub.php5 class ResourceBundle implements IteratorAggregate, Countable
/PHP-8.1/ext/standard/tests/general_functions/
H A Dis_countable_with_classes.phpt9 var_dump(is_countable(new class implements Countable {
H A Dis_countable_with_variables.phpt31 count(): Argument #1 ($value) must be of type Countable|array, null given
/PHP-8.1/ext/opcache/tests/jit/
H A Djmpz_001.phpt19 ((is_array($modelData) || $modelData instanceof \Countable) && true) || false;

Completed in 31 milliseconds

12