public function testCallExecutesAnonymousFunction() { $expected = 'foo'; $c = new Container(); $result = $c->call(function () use($expected) { return $expected; }); $this->assertSame($result, $expected); }