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

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

update php

File size: 243 bytes
Line 
1--TEST--
2closure binding to anonymous class
3--FILE--
4<?php
5$class = new class {};
6$foo = function() {
7    return $this;
8};
9
10$closure = Closure::bind($foo, $class, $class);
11var_dump($closure());
12?>
13--EXPECTF--
14object(class@anonymous)#1 (0) {
15}
Note: See TracBrowser for help on using the repository browser.