/PHP-5.5/ext/dom/tests/ |
H A D | DOMNode_cloneNode_basic.phpt | 36 $dom = new DOMDocument(); 53 $first_course->setAttribute('title', 'new title1'); 56 $first_course->setAttribute('title', 'new title2'); 59 $first_course->setAttribute('title', 'new title3'); 61 $cloned_first_course_default->setAttribute('title', 'new title default'); 62 $cloned_first_course_true->setAttribute('title', 'new title true'); 63 $cloned_first_course_false->setAttribute('title', 'new title false'); 78 Course: new title3:DOMElement 94 Course: new title default:DOMElement 97 Course: new title true:DOMElement [all …]
|
/PHP-5.5/ext/reflection/tests/ |
H A D | ReflectionObject_constructor_basic.phpt | 5 $r1 = new ReflectionObject(new stdClass); 9 $myInstance = new C; 10 $r2 = new ReflectionObject($myInstance); 13 $r3 = new ReflectionObject($r2);
|
H A D | ReflectionClass_constructor_001.phpt | 5 $r1 = new ReflectionClass("stdClass"); 7 $myInstance = new stdClass; 8 $r2 = new ReflectionClass($myInstance); 16 $myTrickClass = new TrickClass; 17 $r3 = new ReflectionClass($myTrickClass);
|
H A D | ReflectionMethod_constructor_basic.phpt | 13 $methodInfo = new ReflectionMethod("NewCtor::__construct"); 18 echo "\nInherited new-style constructor\n"; 19 $methodInfo = new ReflectionMethod("ExtendsNewCtor::__construct"); 28 $methodInfo = new ReflectionMethod("OldCtor::OldCtor"); 34 $methodInfo = new ReflectionMethod("ExtendsOldCtor::OldCtor"); 43 $methodInfo = new ReflectionMethod("X::Y"); 49 $methodInfo = new ReflectionMethod("Y::Y"); 62 $methodInfo = new ReflectionMethod("OldAndNewCtor::OldAndNewCtor"); 66 $methodInfo = new ReflectionMethod("OldAndNewCtor::__construct"); 79 $methodInfo = new ReflectionMethod("NewAndOldCtor::__construct"); [all …]
|
H A D | ReflectionMethod_setAccessible.phpt | 12 $private = new ReflectionMethod('A', 'aPrivate'); 13 $privateStatic = new ReflectionMethod('A', 'aPrivateStatic'); 14 $protected = new ReflectionMethod('A', 'aProtected'); 18 $private->invoke(new A, NULL); 26 $private->invokeArgs(new A, array(NULL)); 50 $protected->invoke(new A, NULL); 58 $protected->invokeArgs(new A, array(NULL)); 86 $private->invoke(new A, NULL); 87 $private->invokeArgs(new A, array(NULL)); 90 $protected->invoke(new A, NULL); [all …]
|
H A D | bug45139.phpt | 22 $rc = new ReflectionClass('C'); 26 $rc = new ReflectionClass('A'); 30 $rc = new ReflectionClass('B'); 34 $rc = new ReflectionClass('C'); 38 $rc = new ReflectionClass('C'); 42 $rc = new ReflectionClass('B'); 46 $rc = new ReflectionClass('C');
|
H A D | ReflectionObject_constructor_error.phpt | 6 var_dump(new ReflectionObject()); 7 var_dump(new ReflectionObject('stdClass')); 8 $myInstance = new stdClass; 9 var_dump(new ReflectionObject($myInstance, $myInstance)); 10 var_dump(new ReflectionObject(0)); 11 var_dump(new ReflectionObject(null)); 12 var_dump(new ReflectionObject(array(1,2)));
|
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 …]
|
/PHP-5.5/tests/classes/ |
H A D | destructor_and_references.phpt | 11 $o1 = new test1; 12 $o2 = new test2; 13 $o3 = new test3; 14 $o4 = new test4; 22 $o = new once;
|
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'); 136 __set "publicProperty" to "new publicProperty value via setter" 137 new publicProperty value via setter 140 new publicProperty value via public access 145 __set "protectedProperty" to "new protectedProperty value via setter" 147 new protectedProperty value via setter 152 __set "privateProperty" to "new privateProperty value via setter" [all …]
|
/PHP-5.5/Zend/tests/ |
H A D | class_alias_012.phpt | 11 new foo; 15 var_dump(new foo); 16 var_dump(new T); 19 var_dump(new $var); 22 var_dump(new $var);
|
H A D | bug48409.phpt | 13 throw new ABCException; 31 $b = new BBB; 32 $c = new CCC; 52 throw new Exception; 58 $runner = new Runner; 59 $runner->run(new AAA);
|
/PHP-5.5/ext/spl/tests/ |
H A D | iterator_024.phpt | 8 foreach(new RecursiveIteratorIterator(new ArrayObject($ar, 0, "RecursiveArrayIterator")) as $v) ech… 10 $it = new ArrayObject($ar); 15 foreach(new RecursiveIteratorIterator(new ArrayObject($ar)) as $v) echo "$v\n"; 26 foreach(new RecursiveIteratorIterator($it) as $v) echo "$v\n";
|
H A D | bug66702.phpt | 9 $it = new \ArrayIterator(array("foo", "bar", "baz")); 10 $it2 = new \RegexIterator($it, "/^ba/", \RegexIterator::MATCH); 12 $it2 = new \RegexIterator($it, "/^ba/", \RegexIterator::MATCH, \RegexIterator::INVERT_MATCH); 15 $it = new \ArrayIterator(array("foo" => 1, "bar" => 2, "baz" => 3)); 16 $it2 = new \RegexIterator($it, "/^ba/", \RegexIterator::MATCH, \RegexIterator::USE_KEY); 18 $it2 = new \RegexIterator($it, "/^ba/", \RegexIterator::MATCH, \RegexIterator::USE_KEY | \RegexIter…
|
H A D | arrayObject___construct_basic1.phpt | 6 var_dump(new ArrayObject()); 9 $a = new stdClass; 11 var_dump(new ArrayObject($a)); 14 var_dump(new ArrayObject(array('key1' => 'val1'))); 17 var_dump(new ArrayObject(new ArrayObject($a)));
|
H A D | observer_008.phpt | 7 $o1 = new StdClass; 8 $o2 = new StdClass; 9 $o3 = new StdClass; 11 $a = new A; 15 $b = new SplObjectSTorage();
|
H A D | spl_caching_iterator_constructor_flags.phpt | 10 $arrayIterator = new ArrayIterator($array); 12 $test = new CachingIterator($arrayIterator, 0); 13 $test = new CachingIterator($arrayIterator, 1); 14 $test = new CachingIterator($arrayIterator, 2); 15 $test = new CachingIterator($arrayIterator, 3); // this throws an exception
|
H A D | bug44615.phpt | 8 $a = new stdClass(); 12 $rai = new RecursiveArrayIterator($array,RecursiveArrayIterator::CHILD_ARRAYS_ONLY); 14 foreach (new RecursiveIteratorIterator($rai) as $t) { 18 $rai = new RecursiveArrayIterator($array); 19 foreach (new RecursiveIteratorIterator($rai) as $t) {
|
/PHP-5.5/ext/intl/tests/ |
H A D | dateformat_timezone_arg_variations2.phpt | 15 $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 D | dateformat_timezone_arg_variations3.phpt | 16 $df = new IntlDateFormatter('es_ES', 0, 0, NULL); 19 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam'); 22 $df = new IntlDateFormatter('es_ES', 0, 0, new DateTimeZone('Europe/Lisbon')); 25 $df = new IntlDateFormatter('es_ES', 0, 0, IntlTimeZone::createTimeZone('America/New_York')); 29 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam', new IntlGregorianCalendar('Europe/Li… 33 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, new IntlGregorianCalendar('Europe/Lisbon')); 36 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam', 0);
|
/PHP-5.5/ext/standard/tests/array/ |
H A D | usort_object2.phpt | 68 0 => new StaticClass(20), 69 1 => new StaticClass(50), 70 2 => new StaticClass(15), 71 3 => new StaticClass(70), 79 0 => new EmptyClass(), 80 1 => new EmptyClass(), 81 2 => new EmptyClass(), 82 3 => new EmptyClass(), 90 0 => new ChildClass(20), 91 1 => new ChildClass(500), [all …]
|
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")
|
/PHP-5.5/ext/date/tests/ |
H A D | rfc-datetime_and_daylight_saving_time-type3-bd2.phpt | 20 $tz = new DateTimeZone('America/New_York'); 26 $end = new DateTime('2010-11-07 05:30:00'); 28 $start = new DateTime('2010-11-06 04:30:59'); 32 $end = new DateTime('2010-11-07 01:30:00 EST'); 34 $start = new DateTime('2010-11-06 04:30:00'); 38 $end = new DateTime('2010-11-07 01:30:00 EDT'); 40 $start = new DateTime('2010-11-06 04:30:00'); 44 $end = new DateTime('2010-11-07 01:30:00 EST'); 46 $start = new DateTime('2010-11-06 01:30:00');
|
H A D | date_period.phpt | 6 $db = new DateTime( '2008-01-01' ); 7 $de = new DateTime( '2008-12-31' ); 10 foreach ( new DatePeriod( $db, $di, $de ) as $dt ) 17 $db = new DateTime( '2007-12-31' ); 18 $de = new DateTime( '2009-12-31 23:59:59' ); 21 foreach ( new DatePeriod( $db, $di, $de, DatePeriod::EXCLUDE_START_DATE ) as $dt )
|
H A D | bug62561.phpt | 5 $tz = new DateTimeZone('America/New_York'); 6 $ts = new DateTime('@1341115200', $tz); 7 $int = new DateInterval('P1D'); 8 $dayFromTs = new DateTime('@1341115200', new DateTimeZone('America/New_York'));
|