protected function setUp() { parent::setUp(); $this->setFixtureResponse("api_responses/ping_ok.txt"); }
protected function setUp() { parent::setUp(); $this->setFixtureResponse("api_responses/auth_ok.txt"); Phake::when($this->cryptService)->encryptRSA(Phake::anyParameters())->thenReturn("RSA Encrypted"); Phake::when($this->cryptService)->sign(Phake::anyParameters())->thenReturn("Signed"); }
protected function setUp() { parent::setUp(); $this->setFixtureResponse("api_responses/wl_user_create_ok.txt"); \Phake::when($this->cryptService)->decryptAES(\Phake::anyParameters())->thenReturn('{"qrcode": "' . $this->qrCodeUrl . '", "code": "' . $this->code . '"}'); }
protected function setUp() { parent::setUp(); $this->setFixtureResponse("api_responses/poll_ok.txt"); \Phake::when($this->cryptService)->decryptRSA(\Phake::anyParameters())->thenReturn('{ "device_id": "Device ID", "response": "true", "auth_request": "Auth Request", "app_pins": "APP,PINS"}'); }