1--TEST-- 2Observer: Basic observability of userland methods 3--EXTENSIONS-- 4zend_test 5--INI-- 6zend_test.observer.enabled=1 7zend_test.observer.show_output=1 8zend_test.observer.observe_all=1 9--FILE-- 10<?php 11class TestClass 12{ 13 private function bar() 14 { 15 echo 'Bar' . PHP_EOL; 16 var_dump(array_sum([1,2,3])); 17 } 18 19 public function foo() 20 { 21 echo 'Foo' . PHP_EOL; 22 $this->bar(); 23 } 24} 25 26$test = new TestClass(); 27$test->foo(); 28$test->foo(); 29$test->foo(); 30 31echo 'DONE' . PHP_EOL; 32?> 33--EXPECTF-- 34<!-- init '%s%eobserver_basic_%d.php' --> 35<file '%s%eobserver_basic_%d.php'> 36 <!-- init TestClass::foo() --> 37 <TestClass::foo> 38Foo 39 <!-- init TestClass::bar() --> 40 <TestClass::bar> 41Bar 42 <!-- init array_sum() --> 43 <array_sum> 44 </array_sum> 45 <!-- init var_dump() --> 46 <var_dump> 47int(6) 48 </var_dump> 49 </TestClass::bar> 50 </TestClass::foo> 51 <TestClass::foo> 52Foo 53 <TestClass::bar> 54Bar 55 <array_sum> 56 </array_sum> 57 <var_dump> 58int(6) 59 </var_dump> 60 </TestClass::bar> 61 </TestClass::foo> 62 <TestClass::foo> 63Foo 64 <TestClass::bar> 65Bar 66 <array_sum> 67 </array_sum> 68 <var_dump> 69int(6) 70 </var_dump> 71 </TestClass::bar> 72 </TestClass::foo> 73DONE 74</file '%s%eobserver_basic_%d.php'> 75