zhaojs
2023-07-13 c8534d4372d01c8a6e6e3677d9d3bcf195a6bc27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Test register() returns static and is a fluent interface
--SKIPIF--
<?php if (!extension_loaded("pimple")) print "skip"; ?>
--FILE--
<?php
 
class Foo implements Pimple\ServiceProviderInterface
{
    public function register(Pimple\Container $p)
    {
    }
}
 
$p = new Pimple\Container();
var_dump($p === $p->register(new Foo));
--EXPECTF--
bool(true)