Home
last modified time | relevance | path

Searched refs:new (Results 51 – 75 of 4071) sorted by relevance

12345678910>>...163

/PHP-5.5/ext/reflection/tests/
H A Dclosures_002.phpt10 $rm = new ReflectionMethod(new Test, '__invoke');
15 $rp = new ReflectionParameter(array(new Test, '__invoke'), 0);
18 $rp = new ReflectionParameter(array(new Test, '__invoke'), 1);
H A DReflectionClass_setStaticPropertyValue_001_2_4.phpt23 $rcA = new ReflectionClass('A');
24 $rcA->setStaticPropertyValue("\0A\0privateOverridden", "new value 1");
25 $rcA->setStaticPropertyValue("\0*\0protectedOverridden", "new value 2");
26 $rcA->setStaticPropertyValue("publicOverridden", "new value 3");
30 $rcB = new ReflectionClass('B');
31 $rcB->setStaticPropertyValue("\0A\0privateOverridden", "new value 4");
32 $rcB->setStaticPropertyValue("\0B\0privateOverridden", "new value 5");
33 $rcB->setStaticPropertyValue("\0*\0protectedOverridden", "new value 6");
34 $rcB->setStaticPropertyValue("publicOverridden", "new value 7");
40 var_dump($rcA->setStaticPropertyValue("protectedOverridden", "new value 8"));
[all …]
H A DReflectionObject_getName_basic.phpt5 $r0 = new ReflectionObject();
8 $r1 = new ReflectionObject(new stdClass);
12 $myInstance = new C;
13 $r2 = new ReflectionObject($myInstance);
16 $r3 = new ReflectionObject($r2);
H A DReflectionClass_isInternal_basic.phpt8 $r1 = new ReflectionClass("stdClass");
9 $r2 = new ReflectionClass("ReflectionClass");
10 $r3 = new ReflectionClass("ReflectionProperty");
11 $r4 = new ReflectionClass("Exception");
12 $r5 = new ReflectionClass("C");
H A DReflectionClass_isUserDefined_basic.phpt8 $r1 = new ReflectionClass("stdClass");
9 $r2 = new ReflectionClass("ReflectionClass");
10 $r3 = new ReflectionClass("ReflectionProperty");
11 $r4 = new ReflectionClass("Exception");
12 $r5 = new ReflectionClass("C");
/PHP-5.5/ext/soap/tests/interop/Round4/GroupH/
H A Dround4_groupH_complex_rpcenc.inc5 …return new SoapFault("Server", "Fault in response to 'echoSOAPStructFault'.", null, $input, "Compl…
9 …return new SoapFault("Server", "Fault in response to 'echoBaseStructFault'.", null, $input, "Compl…
13 …return new SoapFault("Server", "Fault in response to 'echoExtendedStructFault'.", null, $input, "C…
18 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults1'.", null, $s2, "ComplexF…
20 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults1'.", null, array("soapStr…
26 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $s2, "ComplexF…
28 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $s3, "ComplexF…
30 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $s1, "ComplexF…
35 $server = new SoapServer(dirname(__FILE__)."/round4_groupH_complex_rpcenc.wsdl");
H A Dround4_groupH_complex_doclit.inc5 …return new SoapFault("Server", "Fault in response to 'echoSOAPStructFault'.", null, array("soapStr…
9 …return new SoapFault("Server", "Fault in response to 'echoBaseStructFault'.", null, $input, "Compl…
13 …return new SoapFault("Server", "Fault in response to 'echoExtendedStructFault'.", null, $input, "C…
18 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults1'.", null, $input->param2…
20 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults1'.", null, array("soapStr…
26 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $input->param2…
28 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $input->param3…
30 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $input->param1…
35 $server = new SoapServer(dirname(__FILE__)."/round4_groupH_complex_doclit.wsdl");
/PHP-5.5/ext/spl/tests/
H A DCallbackFilterIteratorTest-002.phpt12 new CallbackFilterIterator();
18 new CallbackFilterIterator(null);
24 new CallbackFilterIterator(new ArrayIterator(array()), null);
30 new CallbackFilterIterator(new ArrayIterator(array()), array());
35 $it = new CallbackFilterIterator(new ArrayIterator(array(1)), function() {
36 throw new Exception("some message");
H A Dbug54384.phpt20 $o = new IteratorIteratorTest;
30 $o = new FilterIteratorTest;
49 $o = new ParentIteratorTest;
58 $o = new LimitIteratorTest;
67 $o = new CachingIteratorTest;
85 $o = new NoRewindIteratorTest;
94 $o = new RegexIteratorTest;
112 $o = new GlobIteratorTest;
121 $o = new SplFileObjectTest;
139 $o = new AppendIteratorTest;
[all …]
H A Dspl_iterator_iterator_constructor.phpt12 $arrayIterator = new ArrayIterator($array);
14 $test = new IteratorIterator($arrayIterator);
16 $test = new IteratorIterator($arrayIterator, 1);
17 $test = new IteratorIterator($arrayIterator, 1, 1);
18 $test = new IteratorIterator($arrayIterator, 1, 1, 1);
19 $test = new IteratorIterator($arrayIterator, 1, 1, 1, 1);
H A DSplObjectStorage_getHash.phpt5 $s = new SplObjectStorage();
6 $o1 = new Stdclass;
7 $o2 = new Stdclass;
18 $s1 = new MySplObjectStorage;
26 throw new Exception("foo");
32 $s2 = new MySplObjectStorage2;
44 $s3 = new MySplObjectStorage3;
/PHP-5.5/ext/date/tests/
H A DDateTime_construct_basic1.phpt2 Test new DateTime() : basic functionality
6 * Description: Returns new DateTime object
14 echo "*** Testing new DateTime() : basic functionality ***\n";
16 var_dump( new DateTime('') );
18 var_dump( new DateTime("GMT") );
19 var_dump( new DateTime("2005-07-14 22:30:41") );
20 var_dump( new DateTime("2005-07-14 22:30:41 GMT") );
25 *** Testing new DateTime() : basic functionality ***
H A Drfc-datetime_and_daylight_saving_time-type3-bd1.phpt16 $end = new DateTime('2010-11-07 05:30:00');
17 $start = new DateTime('2010-11-06 04:30:00');
21 $end = new DateTime('2010-11-07 04:30:00');
22 $start = new DateTime('2010-11-06 04:30:00');
26 $end = new DateTime('2010-11-07 03:30:00');
27 $start = new DateTime('2010-11-06 04:30:00');
31 $end = new DateTime('2010-11-07 02:30:00');
32 $start = new DateTime('2010-11-06 04:30:00');
36 $end = new DateTime('2010-11-07 01:30:00');
37 $start = new DateTime('2010-11-06 01:30:00');
H A DDateTimeZone_construct_basic.phpt2 Test new DateTimeZone() : basic functionality
6 * Description: Returns new DateTimeZone object
14 echo "*** Testing new DateTimeZone() : basic functionality ***\n";
16 var_dump( new DateTimeZone("GMT") );
17 var_dump( new DateTimeZone("Europe/London") );
18 var_dump( new DateTimeZone("America/Los_Angeles") );
23 *** Testing new DateTimeZone() : basic functionality ***
/PHP-5.5/Zend/tests/
H A Dlsb_005.phpt8 echo get_class(new static()) . "\n";
10 echo get_class(new static()) . "\n";
12 echo get_class(new static()) . "\n";
14 echo get_class(new static()) . "\n";
20 echo get_class(new static()) . "\n";
22 echo get_class(new static()) . "\n";
28 echo get_class(new static()) . "\n";
H A Dinstanceof_002.phpt15 var_dump(new foo instanceof stdClass);
16 var_dump(new foo instanceof ITest);
17 var_dump(new foo instanceof IFoo);
22 var_dump(new bar instanceof stdClass);
23 var_dump(new bar instanceof ITest);
24 var_dump(new bar instanceof IFoo);
H A Dindirect_method_call_002.phpt13 return new self;
19 var_dump((new foo())->bar()); // string(3) "foo"
20 var_dump((new foo())->baz()->x); // string(7) "testing"
21 var_dump((new foo())->baz()->baz()->bar()); // string(3) "foo"
22 var_dump((new foo())->xyz()); // NULL
23 (new foo())->www();
/PHP-5.5/ext/standard/tests/array/
H A Darsort_object1.phpt48 1 => new for_integer_arsort(11), 2 => new for_integer_asort(66),
49 3 => new for_integer_arsort(23), 4 => new for_integer_asort(-5),
50 5 => new for_integer_arsort(0.001), 6 => new for_integer_asort(0)
55 "a" => new for_string_arsort("axx"), "b" => new for_string_asort("t"),
56 "c" => new for_string_arsort("w"), "d" => new for_string_asort("py"),
57 "e" => new for_string_arsort("apple"), "f" => new for_string_asort("Orange"),
58 "g" => new for_string_arsort("Lemon"), "h" => new for_string_asort("aPPle")
/PHP-5.5/tests/classes/
H A Dnew_001.phpt2 Confirm difference between assigning new directly and by reference.
18 $f = new Inc();
23 echo "Assigning new object directly to \$k affects \$f:\n";
24 $k = new Inc();
27 …echo "Assigning new object by ref to \$k removes it from \$f's reference set, so \$f is unchanged:…
28 $k =& new Inc();
32 Deprecated: Assigning the return value of new by reference is deprecated in %s on line 23
39 Assigning new object directly to $k affects $f:
44 Assigning new object by ref to $k removes it from $f's reference set, so $f is unchanged:
/PHP-5.5/ext/intl/tests/
H A Dformatter_get_set_symbol.phpt54 // Set a new symbol value.
66 // Check if the new value has been set.
70 // Format the number using the new value.
104 A number formatted with the new symbol: 12,345.123
114 A number formatted with the new symbol: `a,bcd.`ab
119 A number formatted with the new symbol: 12,345.123
139 A number formatted with the new symbol: $12,345.12
154 A number formatted with the new symbol: 12,345.123
159 A number formatted with the new symbol: 12,345.123
164 A number formatted with the new symbol: 12,345.123
[all …]
H A Dformatter_get_set_symbol2.phpt54 // Set a new symbol value.
66 // Check if the new value has been set.
70 // Format the number using the new value.
104 A number formatted with the new symbol: 12,345.123
114 A number formatted with the new symbol: 12,345.123
119 A number formatted with the new symbol: 12,345.123
139 A number formatted with the new symbol: $12,345.12
154 A number formatted with the new symbol: 12,345.123
159 A number formatted with the new symbol: 12,345.123
164 A number formatted with the new symbol: 12,345.123
[all …]
H A Ddateformat_timezone_arg_variations.phpt15 $df = new IntlDateFormatter('es_ES', 0, 0, NULL);
18 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam');
21 $df = new IntlDateFormatter('es_ES', 0, 0, new DateTimeZone('Europe/Lisbon'));
24 $df = new IntlDateFormatter('es_ES', 0, 0, IntlTimeZone::createTimeZone('America/New_York'));
28 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam', new IntlGregorianCalendar('Europe/Li…
32 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, new IntlGregorianCalendar('Europe/Lisbon'));
35 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam', 0);
H A Ddateformat_timezone_arg_variations4.phpt15 $df = new IntlDateFormatter('es_ES', 0, 0, NULL);
18 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam');
21 $df = new IntlDateFormatter('es_ES', 0, 0, new DateTimeZone('Europe/Lisbon'));
24 $df = new IntlDateFormatter('es_ES', 0, 0, IntlTimeZone::createTimeZone('America/New_York'));
28 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam', new IntlGregorianCalendar('Europe/Li…
32 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, new IntlGregorianCalendar('Europe/Lisbon'));
35 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam', 0);
/PHP-5.5/ext/phar/tests/
H A Dphar_oo_compressed_002.phpt22 $phar = new Phar($fname);
33 file_put_contents($pname . '/b', b'new b');
34 file_put_contents($pname . '/c', b'new c', 0, $context);
35 file_put_contents($pname . '/d', b'new d');
36 file_put_contents($pname . '/e', b'new e', 0, $context);
38 $phar = new Phar($fname);
65 string(5) "new b"
67 string(5) "new c"
69 string(5) "new d"
71 string(5) "new e"
H A Dphar_oo_compressed_002b.phpt22 $phar = new Phar($fname);
33 file_put_contents($pname . '/b', b'new b');
34 file_put_contents($pname . '/c', b'new c', 0, $context);
35 file_put_contents($pname . '/d', b'new d');
36 file_put_contents($pname . '/e', b'new e', 0, $context);
38 $phar = new Phar($fname);
65 string(5) "new b"
67 string(5) "new c"
69 string(5) "new d"
71 string(5) "new e"

Completed in 30 milliseconds

12345678910>>...163