xref: /PHP-7.4/Zend/tests/assert/bug70208.phpt (revision 6ba72066)
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--EXPECTF--
23Deprecated: assert(): Calling assert() with a string argument is deprecated in %s on line %d
24int(1)
25