You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
361 B
18 lines
361 B
--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)
|