/** * @test */ public function shouldReturnSetOption() { $context = new JwtContext(new Request(), JwtBindingTypes::HTTP_REDIRECT, null); $context->optionSet('foo', $expectedFooValue = 'foo.value'); $context->optionSet('bar', $expectedBarValue = array(1, 2, 3)); $this->assertEquals($expectedFooValue, $context->optionGet('foo')); $this->assertEquals($expectedBarValue, $context->optionGet('bar')); $this->assertEquals(array('foo' => $expectedFooValue, 'bar' => $expectedBarValue), $context->getOptions()); }