Exemple #1
0
 /**
  * @deprecated Options methods will be removed in 2.0
  */
 public function test_options()
 {
     $state = new SsoState();
     $this->assertFalse($state->hasOption('a'));
     $this->assertEquals([], $state->getOptions());
     $state->addOption('a', 1);
     $this->assertTrue($state->hasOption('a'));
     $this->assertEquals(['a' => 1], $state->getOptions());
     $state->removeOption('a');
     $this->assertFalse($state->hasOption('a'));
     $this->assertEquals([], $state->getOptions());
 }