You are here

public function MongoDbProfilerStorageTest::testDsnParser in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Tests/Profiler/MongoDbProfilerStorageTest.php \Symfony\Component\HttpKernel\Tests\Profiler\MongoDbProfilerStorageTest::testDsnParser()

@dataProvider getDsns

File

vendor/symfony/http-kernel/Tests/Profiler/MongoDbProfilerStorageTest.php, line 119

Class

MongoDbProfilerStorageTest

Namespace

Symfony\Component\HttpKernel\Tests\Profiler

Code

public function testDsnParser($dsn, $expected) {
  $m = new \ReflectionMethod(self::$storage, 'parseDsn');
  $m
    ->setAccessible(true);
  $this
    ->assertEquals($expected, $m
    ->invoke(self::$storage, $dsn));
}