xref: /PHP-7.0/Zend/tests/assert/bug70208.phpt (revision b7aac1f5)
1--TEST--
2Bug #70208 (scope information must be preserved with assert())
3--FILE--
4<?php
5
6function non_class_scope() {
7	return true;
8}
9
10class test {
11	protected $prop = 1;
12
13	public function __construct() {
14		assert('non_class_scope();');
15		var_dump($this->prop);
16	}
17}
18
19new test;
20
21?>
22--EXPECT--
23int(1)
24