Home
last modified time | relevance | path

Searched refs:Foo (Results 26 – 50 of 327) sorted by relevance

12345678910>>...14

/PHP-7.0/Zend/tests/return_types/
H A Dinheritance004.phpt6 class Foo {
8 return new Foo;
12 class Bar extends Foo {
19 var_dump(Foo::test());
24 object(Foo)#%d (0) {
H A Dinheritance005.phpt6 class Foo {
8 return new Foo;
12 class Bar extends Foo {
19 Fatal error: Declaration of Bar::test(): Bar must be compatible with Foo::test(): Foo in %sinherita…
H A D021.phpt6 class Foo {
12 class Bar extends Foo {}
14 var_dump(Foo::getInstance());
18 object(Foo)#%d (%d) {
/PHP-7.0/tests/classes/
H A Dtype_hinting_002.phpt8 class Foo {
12 $o = new Foo;
16 …ror: Uncaught TypeError: Argument 1 passed to Foo::a() must be an instance of NonExisting, instanc…
18 #0 %s(%d): Foo->a(Object(Foo))
H A Dobject_reference_001.phpt8 class Foo {
12 $this->name = "I'm Foo!\n";
16 $foo = new Foo;
21 // In ZE1, we would expect "I'm Foo!"
26 I'm Foo!
H A Dprivate_007.phpt16 class Foo extends Bar {
18 echo "Foo::priv()\n";
22 Foo::pub();
23 Foo::priv();
29 Foo::priv()
/PHP-7.0/Zend/tests/
H A Dnested_method_and_function.phpt8 class Foo {
26 $c = Foo::bar();
33 string(7) "Baz\Foo"
35 string(12) "Baz\Foo::bar"
36 string(7) "Baz\Foo"
39 string(7) "Baz\Foo"
H A Dbug22725.phpt7 class Foo {
9 echo "Foo::aPrivateMethod() called.\n";
13 echo "Foo::aProtectedMethod() called.\n";
18 class Bar extends Foo {
30 Foo::aProtectedMethod() called.
31 Foo::aPrivateMethod() called.
H A Dbug41633_3.phpt5 class Foo {
6 const A = Foo::B;
7 const B = Foo::A;
9 echo Foo::A;
12 Fatal error: Uncaught Error: Cannot declare self-referencing constant 'Foo::B' in %sbug41633_3.php:…
H A Dns_091.phpt5 namespace Foo\Bar {
8 namespace Foo\Bar\Baz {
13 use Foo\Bar\{ A, Baz\B };
19 Foo\Bar\A::__construct
20 Foo\Bar\Baz\B::__construct
H A Ddebug_info.phpt6 class Foo {
12 return ['a'=>1, "\0*\0b"=>2, "\0Foo\0c"=>3];
24 $f = new Foo;
30 object(Foo)#%d (3) {
35 ["c":"Foo":private]=>
H A Dns_066.phpt6 use Foo\Bar\Foo as stdClass;
10 Foo\Bar\Foo
H A Dbug27798.phpt8 public $Foo = 1;
39 ["Foo"]=>
47 ["Foo"]=>
52 ["Foo"]=>
63 ["Foo"]=>
69 ["Foo"]=>
H A Dns_089.phpt5 namespace Foo\Bar\Baz {
17 use Foo\Bar\Baz\{
47 Foo\Bar\Baz\A::__construct
48 Foo\Bar\Baz\B::__construct
49 Foo\Bar\Baz\C::__construct
50 Foo\Bar\Baz\D::__construct
52 Foo\Bar\Baz\foo
53 Foo\Bar\Baz\bar
H A Dbug49908.phpt9 if ($className == 'Foo') {
10 class Foo implements Bar {};
16 new Foo;
20 %unicode|string%(3) "Foo"
26 #1 %s(13): __autoload('Foo')
H A Dbug55578.phpt7 class Foo {
9 return 'Foo';
17 var_dump(test($options, new Foo()));
20 string(3) "Foo"
H A Dbug50816.phpt8 class Foo {
22 $mapWithoutConst = array(Foo::ONE => 'one', Foo::TWO => 'two',);
28 var_dump(Foo::$mapWithConst[1]);
29 var_dump(Foo::$mapWithConst1[1]);
30 var_dump(Foo::$mapWithConst2[1]);
31 var_dump(Foo::$mapWithoutConst[1]);
H A Dbug43201.phpt5 class Foo {
14 $c = new Foo();
25 Notice: Indirect modification of overloaded property Foo::$arr has no effect in %sbug43201.php on l…
27 Notice: Indirect modification of overloaded property Foo::$arr has no effect in %sbug43201.php on l…
33 Notice: Indirect modification of overloaded property Foo::$arr has no effect in %sbug43201.php on l…
37 Notice: Indirect modification of overloaded property Foo::$arr has no effect in %sbug43201.php on l…
41 Notice: Indirect modification of overloaded property Foo::$arr has no effect in %sbug43201.php on l…
45 Notice: Indirect modification of overloaded property Foo::$arr has no effect in %sbug43201.php on l…
49 Notice: Indirect modification of overloaded property Foo::$arr has no effect in %sbug43201.php on l…
53 Notice: Indirect modification of overloaded property Foo::$arr has no effect in %sbug43201.php on l…
H A Dbug40621.phpt6 class Foo {
13 Foo::get();
18 Deprecated: Non-static method Foo::get() should not be called statically in %s on line %d
20 Fatal error: Uncaught Error: Non-static method Foo::__construct() cannot be called statically in %s…
22 #0 %s(%d): Foo::get()
H A Dns_093.phpt8 use Foo\Bar \{ A };
10 use Foo\Bar\ { B };
12 use Foo\Bar
17 use Foo\Bar\
H A Dbug43344_3.phpt5 namespace Foo;
6 function f($a=Foo::bar) {
12 Fatal error: Class 'Foo\Foo' not found in %sbug43344_3.php on line %d
/PHP-7.0/Zend/tests/traits/
H A Dnoctor001.phpt5 trait Foo {
6 public function Foo() {
11 use Foo;
16 $rfoofoo = new ReflectionMethod('Foo::Foo');
19 $rbarfoo = new ReflectionMethod('Bar::Foo');
/PHP-7.0/ext/reflection/tests/
H A Dbug38465.phpt9 class Foo {
14 class Bar extends Foo {
54 Foo::x($a = 1)
55 Foo::x($b = 3)
56 Foo::x($c = 99)
62 Foo::x($a = 1)
63 Foo::x($b = 3)
64 Foo::x($c = 99)
/PHP-7.0/ext/spl/tests/
H A Dbug52238.phpt5 class Foo implements IteratorAggregate
15 var_dump(iterator_to_array(new Foo));
20 #0 %s: Foo->bar()
21 #1 [internal function]: Foo->getIterator()
22 #2 %s: iterator_to_array(Object(Foo))
/PHP-7.0/Zend/tests/arg_unpack/
H A Dnew.phpt6 class Foo {
12 new Foo(...[]);
13 new Foo(...[1, 2, 3]);
14 new Foo(...[1], ...[], ...[2, 3]);

Completed in 23 milliseconds

12345678910>>...14