xref: /PHP-7.1/Zend/tests/anon/014.phpt (revision 0a575fe7)
1--TEST--
2anonymous class trait binding
3--FILE--
4<?php
5trait TaskTrait {
6    function run() {
7        return 'Running...';
8    }
9}
10$class = new class() {
11  use TaskTrait;
12};
13var_dump($class->run());
14?>
15--EXPECTF--
16string(10) "Running..."
17