source: src/router/php7/Zend/tests/anon/014.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 3 months ago

update php

File size: 237 bytes
Line 
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..."
Note: See TracBrowser for help on using the repository browser.