1--TEST-- 2Observer: Basic observability of functions only (no includes) 3--SKIPIF-- 4<?php if (!extension_loaded('zend-test')) die('skip: zend-test extension required'); ?> 5--INI-- 6zend_test.observer.enabled=1 7zend_test.observer.observe_functions=1 8--FILE-- 9<?php 10function foo() 11{ 12 echo 'Foo' . PHP_EOL; 13} 14 15foo(); 16include __DIR__ . '/observer.inc'; 17foo(); 18?> 19--EXPECTF-- 20<!-- init '%s%eobserver_basic_05.php' --> 21<!-- init foo() --> 22<foo> 23Foo 24</foo> 25<!-- init '%s%eobserver.inc' --> 26<!-- init foo_observer_test() --> 27<foo_observer_test> 28foo_observer_test 29</foo_observer_test> 30<foo> 31Foo 32</foo> 33