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

testSetString() public method

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