protected function tearDown() { parent::tearDown(); }
protected function tearDown() { $this->user = null; parent::tearDown(); }
protected function setUp() { parent::setUp(); $this->options = array(LaunchKey_WP_Options::OPTION_ROCKET_KEY => 12345, LaunchKey_WP_Options::OPTION_APP_DISPLAY_NAME => 'App Display Name'); $that = $this; Phake::when($this->facade)->get_option(Phake::anyParameters())->thenReturnCallback(function () use($that) { return $that->options; }); Phake::when($this->facade)->get_site_option(Phake::anyParameters())->thenReturnCallback(function () use($that) { return $that->options; }); Phake::when($this->template)->render_template(Phake::anyParameters())->thenReturnCallback(function ($template) { return "Rendered [{$template}]"; }); Phake::when($this->facade)->wp_login_url(Phake::anyParameters())->thenReturn("WP Login URL"); }
protected function setUp() { parent::setUp(); $this->client = Phake::partialMock('LaunchKey_WP_SSO_Client', $this->facade, $this->template, static::ENTITY_ID, $this->saml_response_service, $this->saml_request_service, $this->wpdb, static::LOGIN_URL, static::LOGOUT_URL, static::ERROR_URL, false); }