public function __construct()
 {
     parent::__construct();
     $this->logger = new Logger(ROOT . '/test.log');
     $data = json_decode(file_get_contents('groph.json'), true);
     $this->fixtures = $data['tags'];
 }
Beispiel #2
0
 public function __construct($name = null, array $data = array(), $dataName = '')
 {
     $this->config = ['clientId' => 'INSP03211', 'redirectUrl' => 'http://my-site.com/response.php', 'portalUrl' => 'https://esia-portal1.test.gosuslugi.ru/', 'privateKeyPath' => __DIR__ . '/../_data/server.key', 'privateKeyPassword' => 'test', 'certPath' => __DIR__ . '/../_data/server.crt', 'tmpPath' => __DIR__ . '/../tmp'];
     // define function for push them from global namespace
     test::func('esia', 'curl_init', false);
     test::func('esia', 'curl_exec', false);
     test::func('esia', 'openssl_pkcs7_sign', false);
     test::func('esia', 'openssl_pkey_get_private', false);
     test::func('esia', 'openssl_x509_read', false);
     test::clean();
     parent::__construct($name, $data, $dataName);
 }
 public function __construct()
 {
     parent::__construct();
     $this->ci =& get_instance();
 }