Phalcon\Test\Unit\DiTest::testResolvingViaArrayAccess PHP Method

testResolvingViaArrayAccess() public method

Tests resolving a services via array access
Since: 2016-01-29
Author: Serghei Iakovlev ([email protected])
    public function testResolvingViaArrayAccess()
    {
        $this->specify("Resolving a services via array access does now work correctly", function () {
            $this->phDi->set('simple', 'SimpleComponent');
            expect(get_class($this->phDi['simple']))->equals('SimpleComponent');
        });
    }