1--TEST--
2Observer: Basic observability of 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_all=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_03.php' -->
21<file '%s%eobserver_basic_03.php'>
22  <!-- init foo() -->
23  <foo>
24Foo
25  </foo>
26  <!-- init '%s%eobserver.inc' -->
27  <file '%s%eobserver.inc'>
28    <!-- init foo_observer_test() -->
29    <foo_observer_test>
30foo_observer_test
31    </foo_observer_test>
32  </file '%s%eobserver.inc'>
33  <foo>
34Foo
35  </foo>
36</file '%s%eobserver_basic_03.php'>
37