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

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

Tests check a service in the services container via Di::has
С версии: 2016-01-29
Автор: Serghei Iakovlev ([email protected])
public testHas ( )
    public function testHas()
    {
        $this->specify("Check a service in the services container via Di::attempt does now work correctly", function () {
            $this->phDi->set('request6', function () {
                return new Request();
            });
            expect($this->phDi->has('request6'))->true();
            expect($this->phDi->has('request7'))->false();
        });
    }