"123456", "token_type" => "Bearer", "expires_in" => 3600, "scope" => "androidpublisher", 'refresh_token' => 'refresh-token' ]); $storage->save($token); $this->assertFalse($storage->expired()); $this->assertEquals('123456', $storage->retrieve()); } /** @test */ public function it_should_say_token_has_been_expired_when_token_does_not_exist() { $storage = new MemoryTokenStorage(); $this->assertTrue($storage->expired()); $this->assertNull($storage->retrieve()); } }