1--TEST--
2Observer: Basic observability of includes only (no functions)
3--EXTENSIONS--
4zend_test
5--INI--
6zend_test.observer.enabled=1
7zend_test.observer.show_output=1
8zend_test.observer.observe_includes=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_04.php' -->
22<file '%s%eobserver_basic_04.php'>
23  <!-- init foo() -->
24Foo
25  <!-- init '%s%eobserver.inc' -->
26  <file '%s%eobserver.inc'>
27    <!-- init foo_observer_test() -->
28foo_observer_test
29  </file '%s%eobserver.inc'>
30Foo
31</file '%s%eobserver_basic_04.php'>
32