You are here

public function MemcachedSessionHandlerTest::testSupportedOptions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Tests/Session/Storage/Handler/MemcachedSessionHandlerTest.php \Symfony\Component\HttpFoundation\Tests\Session\Storage\Handler\MemcachedSessionHandlerTest::testSupportedOptions()

@dataProvider getOptionFixtures

File

vendor/symfony/http-foundation/Tests/Session/Storage/Handler/MemcachedSessionHandlerTest.php, line 104

Class

MemcachedSessionHandlerTest

Namespace

Symfony\Component\HttpFoundation\Tests\Session\Storage\Handler

Code

public function testSupportedOptions($options, $supported) {
  try {
    new MemcachedSessionHandler($this->memcached, $options);
    $this
      ->assertTrue($supported);
  } catch (\InvalidArgumentException $e) {
    $this
      ->assertFalse($supported);
  }
}