Home
last modified time | relevance | path

Searched refs:A (Results 76 – 100 of 1323) sorted by relevance

12345678910>>...53

/PHP-5.5/ext/reflection/tests/
H A DReflectionObject_isInstance_basic.phpt5 class A {}
6 class B extends A {}
9 $classes = array("A", "B", "X");
11 $instances = array( "myA" => new A,
25 is myA a A? bool(true)
26 is myB a A? bool(true)
27 is myX a A? bool(false)
H A Dbug53915.phpt7 const A = 1;
8 const B = self::A;
16 const A = 1;
17 const B = self::A;
25 [A] => 1
H A DReflectionClass_getStaticPropertyValue_001.phpt10 class A {
16 class B extends A {
22 echo "Retrieving static values from A:\n";
23 $rcA = new ReflectionClass('A');
25 var_dump($rcA->getStaticPropertyValue("\0A\0privateOverridden"));
32 var_dump($rcB->getStaticPropertyValue("\0A\0privateOverridden"));
37 echo "\nRetrieving non-existent values from A with no default value:\n";
54 Retrieving static values from A:
67 Retrieving non-existent values from A with no default value:
68 Class A does not have a property named protectedOverridden
[all …]
H A DReflectionClass_export_basic1.phpt5 Class A {
7 public function pubf(A $a,
17 Class C extends A { }
23 Class [ <user> class C extends A ] {
39 Method [ <user, inherits A> public method privf ] {
47 Method [ <user, inherits A> public method pubf ] {
51 Parameter #0 [ <required> A $a ]
H A DReflectionClass_setStaticPropertyValue_001.phpt10 class A {
16 class B extends A {
22 echo "Set static values in A:\n";
23 $rcA = new ReflectionClass('A');
24 $rcA->setStaticPropertyValue("\0A\0privateOverridden", "new value 1");
31 $rcB->setStaticPropertyValue("\0A\0privateOverridden", "new value 4");
38 echo "\nSet non-existent values from A with no default value:\n";
55 Set static values in A:
77 Set non-existent values from A with no default value:
78 Class A does not have a property named protectedOverridden
[all …]
H A Dbug43926.phpt11 class A extends D {
14 class C extends A {
17 $ra = new ReflectionClass('A');
27 print("Is? A ". ($ra->isInstance($ca) ? 'true' : 'false') .", instanceof: ". (($ca instanceof A) ? …
32 print("Is? A ". ($ra->isInstance($cc) ? 'true' : 'false') .", instanceof: ". (($cc instanceof A) ? …
37 print("Is? A ". ($ra->isInstance($cd) ? 'true' : 'false') .", instanceof: ". (($cd instanceof A) ? …
42 print("Is? A ". ($ra->isInstance($ce) ? 'true' : 'false') .", instanceof: ". (($ce instanceof A) ? …
49 Is? A true, instanceof: true
54 Is? A true, instanceof: true
59 Is? A false, instanceof: false
[all …]
H A Dbug64239.phpt5 class A {
13 class B extends A{
28 [class] => A
34 [class] => A
41 [class] => A
/PHP-5.5/tests/classes/
H A D__call_005.phpt5 class A {
12 class B extends A {
14 A::test1(1,'a');
26 In A::__call(test1, array(1,a))
29 In A::__call(test2, array(1,a))
32 In A::__call(test3, array(1,a))
35 In A::__call(test4, array(1,a))
H A Dproperty_override_protected_protected.phpt5 class A
7 protected $p = "A::p";
14 class B extends A
24 $a = new A;
32 A::p
H A Dproperty_override_protected_public.phpt5 class A
7 protected $p = "A::p";
14 class B extends A
24 $a = new A;
32 A::p
H A Dproperty_override_public_public.phpt5 class A
7 public $p = "A::p";
14 class B extends A
24 $a = new A;
32 A::p
/PHP-5.5/ext/standard/tests/general_functions/
H A Dbug52138.data8 A=1
9 B=A "A" A
/PHP-5.5/Zend/tests/traits/
H A Dstatic_forward_static_call.phpt1 --TEST--
2 Traits and forward_static_call().
3 --CREDITS--
4 Simas Toleikis simast@gmail.com
5 --FILE--
6 <?php
7
8 trait TestTrait {
9 public static function test() {
10 return 'Forwarded '.forward_static_call(array('A', 'test'));
[all …]
H A Dbug60165d.phpt8 trait A {}
15 use A, B {
16 A::bar insteadof B;
21 Fatal error: A precedence rule was defined for A::bar but this method does not exist in %s on line …
/PHP-5.5/ext/spl/tests/
H A Dregexiterator_getregex.phpt20 $regexIterator = new RegexIterator($iterator, '|\b[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b|');
29 string(43) "|\b[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b|"
/PHP-5.5/Zend/tests/
H A Dbug30828.phpt5 class A {
31 class B extends A {
50 #0 A->__construct() called at [%sbug30828.php:30]
52 A->__construct
54 #0 A->foo() called at [%sbug30828.php:34]
56 A->foo
58 #0 A::bar() called at [%sbug30828.php:38]
60 A::bar
H A Dheredoc_017.phpt6 $a = <<<A
7 A;
9 A;
11 A;
H A Dns_039.phpt5 function foo($a = A) {
8 function bar($a = array(A => B)) {
14 const A = "ok";
15 const B = A;
16 echo A . "\n";
H A Dbug46246.phpt5 class A
20 class B extends A
28 $a = new A;
35 Hello from A
36 Hello from A
37 Hello from A
H A Dclosure_043.phpt9 $staticUnscoped = static function () { var_dump(isset(A::$priv)); var_dump(isset($this)); };
11 class A {
14 return static function() { var_dump(isset(A::$priv)); var_dump(isset($this)); };
18 $staticScoped = A::getStaticClosure();
29 $d = $staticUnscoped->bindTo(new A, null); $d(); echo "\n";
30 $d = $staticScoped->bindTo(new A, null); $d(); echo "\n";
33 $d = $staticUnscoped->bindTo(null, 'A'); $d(); echo "\n";
34 $d = $staticScoped->bindTo(null, 'A'); $d(); echo "\n";
37 $d = $staticUnscoped->bindTo(new A, 'A'); $d(); echo "\n";
38 $d = $staticScoped->bindTo(new A, 'A'); $d(); echo "\n";
/PHP-5.5/ext/oci8/tests/
H A Dlob_030.phpt42 echo "Test 1: A CLOB with an even number of bytes\n";
45 echo "Test 2: A CLOB with an odd number of bytes\n";
51 echo "Test 4: A CLOB of 1049028 bytes (the value used for chunks in the code)\n";
54 echo "Test 5: A CLOB of 1049028-1 bytes\n";
57 echo "Test 6: A CLOB of 1049028+1 bytes\n";
66 Test 1: A CLOB with an even number of bytes
68 Test 2: A CLOB with an odd number of bytes
70 Test 3: A CLOB of 1048576 bytes (== size of PHP_OCI_LOB_BUFFER_SIZE at time of test creation)
72 Test 4: A CLOB of 1049028 bytes (the value used for chunks in the code)
74 Test 5: A CLOB of 1049028-1 bytes
[all …]
H A Dbug45458.phpt14 $stmt = 'select dummy "A", dummy "20" from dual';
21 var_dump($data[0]["A"]);
31 var_dump($data["A"]);
33 var_dump($data["A"][0]);
47 ["A"]=>
54 ["A"]=>
63 ["A"]=>
/PHP-5.5/ext/standard/tests/array/
H A Darray_chunk_variation24.phpt5 $array = array ("a" => "A");
18 string(1) "A"
30 string(1) "A"
37 string(1) "A"
44 string(1) "A"
/PHP-5.5/ext/standard/tests/strings/
H A Dbug63874.phpt7 return <<<A
9 A;
13 echo php_strip_whitespace(__FILE__); return <<<A
15 A;
/PHP-5.5/ext/standard/tests/class_object/
H A Dforward_static_call_001.phpt6 class A
8 const NAME = 'A';
14 class B extends A
30 forward_static_call(array('A', 'test'));
41 forward_static_call(array('A', 'test'));
45 A::test();
62 A

Completed in 58 milliseconds

12345678910>>...53