1--TEST--
2Observer: Basic observability of includes only (no functions)
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_includes=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_04.php' -->
21<file '%s%eobserver_basic_04.php'>
22  <!-- init foo() -->
23Foo
24  <!-- init '%s%eobserver.inc' -->
25  <file '%s%eobserver.inc'>
26    <!-- init foo_observer_test() -->
27foo_observer_test
28  </file '%s%eobserver.inc'>
29Foo
30</file '%s%eobserver_basic_04.php'>
31