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_02.php' --> 35<file '%s%eobserver_basic_02.php'> 36 <!-- init TestClass::foo() --> 37 <TestClass::foo> 38Foo 39 <!-- init TestClass::bar() --> 40 <TestClass::bar> 41Bar 42int(6) 43 </TestClass::bar> 44 </TestClass::foo> 45 <TestClass::foo> 46Foo 47 <TestClass::bar> 48Bar 49int(6) 50 </TestClass::bar> 51 </TestClass::foo> 52 <TestClass::foo> 53Foo 54 <TestClass::bar> 55Bar 56int(6) 57 </TestClass::bar> 58 </TestClass::foo> 59DONE 60</file '%s%eobserver_basic_02.php'> 61