Наследование: extends PAGI\Application\PAGIApplication
Пример #1
0
 /**
  * @test
  */
 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);
 }