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

testMagicSetCall() public method

Tests registering a service via magic __set
Since: 2016-01-29
Author: Serghei Iakovlev ([email protected])
public testMagicSetCall ( )
    public function testMagicSetCall()
    {
        $this->specify("Registering a service via magic __set does now work correctly", function () {
            $this->phDi->setRequest9('Phalcon\\Http\\Request');
            expect(get_class($this->phDi->get('request9')))->equals('Phalcon\\Http\\Request');
        });
    }