PAGI\Client\Impl\Test_Application::can_app PHP Method

can_app() public method

public can_app ( )
    public function can_app()
    {
        global $standardAGIStart;
        setFgetsMock($standardAGIStart, array());
        $this->_properties['pagiClient'] = \PAGI\Client\Impl\ClientImpl::getInstance($this->_properties);
        $application = new MyPAGIApplication($this->_properties);
        $application->setLogger(new NullLogger());
        $refObject = new \ReflectionObject($application);
        $refMethod = $refObject->getMethod('getAgi');
        $refMethod->setAccessible(true);
        $agi = $refMethod->invoke($application);
        $this->assertTrue($agi instanceof \PAGI\Client\Impl\ClientImpl);
    }
Test_Application