Annotation of embedaddon/php/Zend/tests/traits/bug60809.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #60809 (TRAITS - PHPDoc Comment Style Bug)
3: --FILE--
4: <?php
5: class ExampleParent {
6: private $hello_world = "hello foo\n";
7: public function foo() {
8: echo $this->hello_world;
9: }
10: }
11:
12: class Example extends ExampleParent {
13: use ExampleTrait;
14: }
15:
16: trait ExampleTrait {
17: /**
18: *
19: */
20: private $hello_world = "hello bar\n";
21: /**
22: *
23: */
24: public $prop = "ops";
25: public function bar() {
26: echo $this->hello_world;
27: }
28: }
29:
30: $x = new Example();
31: $x->foo();
32: $x->bar();
33: ?>
34: --EXPECT--
35: hello foo
36: hello bar
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>