Phalcon\Test\Unit\DiTest::testGettingNonExistentService PHP Метод

testGettingNonExistentService() публичный Метод

Tests getting non-existent service
С версии: 2016-01-29
Автор: Serghei Iakovlev ([email protected])
    public function testGettingNonExistentService()
    {
        $this->specify("Getting non-existent service does not throws exception with expected message", function () {
            $this->phDi->get('nonExistentService');
        }, ['throws' => ['Phalcon\\Di\\Exception', "Service 'nonExistentService' wasn't found in the dependency injection container"]]);
    }