/PHP-7.3/ext/reflection/tests/ |
H A D | ReflectionType_001.phpt | 7 function bar(): stdClass { return new stdClass; } 12 function factory(): self { return new c; } 21 new ReflectionFunction('foo'), 22 new ReflectionFunction($closure), 40 new ReflectionMethod('c', 'bar'), 41 new ReflectionMethod('c', 'pbar'), 60 new ReflectionFunction('bar'), 61 new ReflectionMethod('c', 'bar'), 62 new ReflectionMethod('c', 'factory'), 63 new ReflectionMethod('c', 'pfactory'), [all …]
|
H A D | ReflectionProperty_setValue_error.phpt | 17 $instance = new TestClass(); 18 $instanceWithNoProperties = new AnotherClass(); 19 $propInfo = new ReflectionProperty('TestClass', 'pub2'); 30 $propInfo = new ReflectionProperty('TestClass', 'stat'); 36 var_dump($propInfo->setValue("A new value")); 42 var_dump($propInfo->setValue(true, "Another new value")); 47 $propInfo = new ReflectionProperty('TestClass', 'prot'); 55 $propInfo = new ReflectionProperty('TestClass', 'pub2'); 85 string(11) "A new value" 89 string(11) "A new value" [all …]
|
H A D | ReflectionMethod_getClosureThis.phpt | 23 $class = new ReflectionClass( 'Example' ); 24 $staticclass = new ReflectionClass( 'StaticExample' ); 25 $object = new Example(); 29 $rf = new ReflectionFunction($closure); 36 $rf = new ReflectionFunction($closure);
|
H A D | ReflectionClass_getName_basic.phpt | 12 $r1 = new ReflectionClass("stdClass"); 14 $myInstance = new stdClass; 15 $r2 = new ReflectionClass($myInstance); 17 $r3 = new ReflectionClass("TrickClass");
|
H A D | ReflectionClass_constructor_002.phpt | 6 var_dump(new ReflectionClass()); 12 var_dump(new ReflectionClass(null)); 18 var_dump(new ReflectionClass(true)); 24 var_dump(new ReflectionClass(1)); 30 var_dump(new ReflectionClass(array(1,2,3))); 36 var_dump(new ReflectionClass("stdClass", 1)); 42 var_dump(new ReflectionClass("X"));
|
/PHP-7.3/ext/standard/tests/array/ |
H A D | rsort_object1.phpt | 45 new for_integer_rsort(11), new for_integer_rsort(66), 46 new for_integer_rsort(23), new for_integer_rsort(-5), 47 new for_integer_rsort(0.001), new for_integer_rsort(0) 52 new for_string_rsort("axx"), new for_string_rsort("t"), 53 new for_string_rsort("w"), new for_string_rsort("py"), 54 new for_string_rsort("apple"), new for_string_rsort("Orange"), 55 new for_string_rsort("Lemon"), new for_string_rsort("aPPle")
|
H A D | bug28739.phpt | 12 $p1 = array(new p(2), new p(1), new p(0)); 13 $p2 = array(new p(0), new p(2), new p(3));
|
H A D | natcasesort_object1.phpt | 36 new for_string_natcasesort("axx"), new for_string_natcasesort("t"), 37 new for_string_natcasesort("w"), new for_string_natcasesort("py"), 38 new for_string_natcasesort("apple"), new for_string_natcasesort("Orange"), 39 new for_string_natcasesort("Lemon"), new for_string_natcasesort("aPPle")
|
/PHP-7.3/tests/classes/ |
H A D | unset_properties.phpt | 74 $o = new Test; 86 echo $o->setPublicProperty('new publicProperty value via setter'); 91 $o->publicProperty = 'new publicProperty value via public access'; 121 echo $o->setPrivateProperty('new privateProperty value via setter'); 135 __set "publicProperty" to "new publicProperty value via setter" 136 new publicProperty value via setter 139 new publicProperty value via public access 144 __set "protectedProperty" to "new protectedProperty value via setter" 146 new protectedProperty value via setter 151 __set "privateProperty" to "new privateProperty value via setter" [all …]
|
/PHP-7.3/Zend/tests/ |
H A D | indirect_property_access.phpt | 16 $bar = new bar; 18 var_dump((new bar)->y); // foo 19 var_dump((new $x)->y); // foo 20 var_dump((new $bar->y)->x); // 1
|
/PHP-7.3/ext/spl/tests/ |
H A D | recursiveIteratorIterator_callHasChildren_error.phpt | 7 $arrOb = new ArrayObject($arr); 9 $recArrIt = new RecursiveArrayIterator($arrOb->getIterator()); 14 throw new Exception; 19 $recItIt = new MyRecursiveIteratorIterator($recArrIt, RecursiveIteratorIterator::LEAVES_ONLY, Recur… 23 $recItIt2 = new MyRecursiveIteratorIterator($recArrIt, RecursiveIteratorIterator::LEAVES_ONLY);
|
H A D | recursiveIteratorIterator_nextelement_error.phpt | 7 $arrOb = new ArrayObject($arr); 9 $recArrIt = new RecursiveArrayIterator($arrOb->getIterator()); 14 throw new Exception; 19 $recItIt = new MyRecursiveIteratorIterator($recArrIt, RecursiveIteratorIterator::LEAVES_ONLY, Recur… 23 $recItIt = new MyRecursiveIteratorIterator($recArrIt, RecursiveIteratorIterator::LEAVES_ONLY);
|
H A D | iterator_002.phpt | 15 return new RecursiceArrayIterator($this->current()); 33 return new RecursiceArrayIterator($this->getInnerIterator()->current()); 39 $dir = new RecursiveIteratorIterator(new CrashIterator(new RecursiceArrayIterator($array)), Recursi…
|
H A D | array_016.phpt | 6 $it = new ArrayIterator(range(0,3)); 8 foreach(new IteratorIterator($it) as $v) 13 $it = new ArrayObject(range(0,3)); 15 foreach(new IteratorIterator($it) as $v)
|
H A D | recursiveIteratorIterator_beginchildren_error.phpt | 7 $arrOb = new ArrayObject($arr); 9 $recArrIt = new RecursiveArrayIterator($arrOb->getIterator()); 14 throw new Exception; 19 $recItIt = new MyRecursiveIteratorIterator($recArrIt, RecursiveIteratorIterator::LEAVES_ONLY, Recur… 23 $recItIt2 = new MyRecursiveIteratorIterator($recArrIt, RecursiveIteratorIterator::LEAVES_ONLY);
|
H A D | countable_count_variation1.phpt | 19 return new returnObject; 31 throw new Exception('Thrown from count'); 37 var_dump(count(new returnNull)); 40 var_dump(count(new returnString)); 43 var_dump(count(new returnObject)); 46 var_dump(count(new returnArray)); 50 echo count(new throwException);
|
H A D | fixedarray_021.phpt | 7 $a = new SplFixedArray(); 14 $b = new SplFixedArray(-10); 20 $b = new SplFixedArray(); 28 $c = new SplFixedArray(0); 32 $d = new SplFixedArray(); 40 $e = new SplFixedArray(10); 54 $a = new SplFixedArray(4);
|
H A D | bug61418.phpt | 5 $fileIterator = new FilesystemIterator(__DIR__, FilesystemIterator::KEY_AS_FILENAME); 6 $regexpIterator = new RegexIterator($fileIterator, '#.*#'); 13 $dirIterator = new DirectoryIterator(__DIR__); 14 $regexpIterator2 = new RegexIterator($dirIterator, '#.*#');
|
/PHP-7.3/ext/soap/tests/ |
H A D | fault_warning.phpt | 7 $fault = new SoapFault("", "message"); // Can't be an empty string 8 $fault = new SoapFault(0, "message"); // Can't be a non-string (except for null) 9 $fault = new SoapFault("Sender", "message"); 11 $fault = new SoapFault(null, "message"); 13 $fault = new SoapFault(["more"], "message"); // two elements in array required 14 $fault = new SoapFault(["m", "more", "superflous"], "message"); // two required 15 $fault = new SoapFault(["more-ns", "Sender"], "message"); // two given
|
/PHP-7.3/ext/date/tests/ |
H A D | bug43003.phpt | 7 $oDateTest = new DateTime("@0", new DateTimeZone(date_default_timezone_get())); 10 $oDateTest->setTimezone(new DateTimeZone("UTC")); 13 $oDateTest->setTimezone(new DateTimeZone(date_default_timezone_get())); 16 $oDateTest = new DateTime("@0"); 19 $oDateTest->setTimezone( new DateTimeZone(date_default_timezone_get()));
|
/PHP-7.3/ext/snmp/tests/ |
H A D | reflection.phpt | 10 reflection::export(new reflectionmethod('snmp', '__construct')); 11 reflection::export(new reflectionmethod('snmp', 'close')); 12 reflection::export(new reflectionmethod('snmp', 'setSecurity')); 13 reflection::export(new reflectionmethod('snmp', 'get')); 14 reflection::export(new reflectionmethod('snmp', 'getnext')); 15 reflection::export(new reflectionmethod('snmp', 'walk')); 16 reflection::export(new reflectionmethod('snmp', 'set')); 17 reflection::export(new reflectionmethod('snmp', 'getErrno')); 18 reflection::export(new reflectionmethod('snmp', 'getError'));
|
/PHP-7.3/ext/intl/tests/ |
H A D | dateformat_create_cal_arg.phpt | 15 $cal = new IntlGregorianCalendar('UTC', NULL); 16 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal); 20 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal); 24 $cal = new IntlGregorianCalendar('UTC', NULL); 25 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Madrid', $cal); 29 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0); 33 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0, NULL, IntlDateFormatter::TRADITIONAL); 37 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0, 'UTC', IntlDateFormatter::TRADITIONAL); 40 $df = new IntlDateFormatter('es_ES', 0, 0, 'UTC', 0);
|
/PHP-7.3/ext/dba/ |
H A D | dba_qdbm.c | 81 char *value, *new = NULL; in DBA_FETCH_FUNC() local 87 new = estrndup(value, value_size); in DBA_FETCH_FUNC() 91 return new; in DBA_FETCH_FUNC() 134 char *value, *new = NULL; in DBA_FIRSTKEY_FUNC() local 141 new = estrndup(value, value_size); in DBA_FIRSTKEY_FUNC() 145 return new; in DBA_FIRSTKEY_FUNC() 152 char *value, *new = NULL; in DBA_NEXTKEY_FUNC() local 157 new = estrndup(value, value_size); in DBA_NEXTKEY_FUNC() 161 return new; in DBA_NEXTKEY_FUNC()
|
/PHP-7.3/ext/phar/tests/ |
H A D | phar_oo_compressed_001.phpt | 22 $phar = new Phar($fname); 31 $phar['a'] = 'new a'; 33 $phar['b'] = 'new b'; 35 $phar['d'] = 'new d'; 37 $phar = new Phar($fname); 60 string(5) "new a" 62 string(5) "new b" 66 string(5) "new d"
|
H A D | phar_oo_compressed_001b.phpt | 22 $phar = new Phar($fname); 31 $phar['a'] = 'new a'; 33 $phar['b'] = 'new b'; 35 $phar['d'] = 'new d'; 37 $phar = new Phar($fname); 60 string(5) "new a" 62 string(5) "new b" 66 string(5) "new d"
|