1--TEST--
2Observer: Basic observability of includes
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
11function foo()
12{
13    echo 'Foo' . PHP_EOL;
14}
15
16foo();
17include __DIR__ . '/observer.inc';
18foo();
19?>
20--EXPECTF--
21<!-- init '%s%eobserver_basic_03.php' -->
22<file '%s%eobserver_basic_03.php'>
23  <!-- init foo() -->
24  <foo>
25Foo
26  </foo>
27  <!-- init '%s%eobserver.inc' -->
28  <file '%s%eobserver.inc'>
29    <!-- init foo_observer_test() -->
30    <foo_observer_test>
31foo_observer_test
32    </foo_observer_test>
33  </file '%s%eobserver.inc'>
34  <foo>
35Foo
36  </foo>
37</file '%s%eobserver_basic_03.php'>
38