OrnoTest\ContainerTest::testCallExecutesAnonymousFunction PHP Method

testCallExecutesAnonymousFunction() public method

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