Phalcon\Test\UnitTestCase::getDI PHP Method

getDI() public method

Returns the internal Dependency Injector.
See also: Injectable::getDI
public getDI ( ) : Phalcon\DiInterface
return Phalcon\DiInterface
    public function getDI()
    {
        if (!$this->di instanceof DiInterface) {
            return Di::getDefault();
        }
        return $this->di;
    }