You are here

public function MongoDbProfilerStorageTest::getDsns in Zircon Profile 8.0

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

File

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

Class

MongoDbProfilerStorageTest

Namespace

Symfony\Component\HttpKernel\Tests\Profiler

Code

public function getDsns() {
  return array(
    array(
      'mongodb://localhost/symfony_tests/profiler_data',
      array(
        'mongodb://localhost/symfony_tests',
        'symfony_tests',
        'profiler_data',
      ),
    ),
    array(
      'mongodb://user:password@localhost/symfony_tests/profiler_data',
      array(
        'mongodb://user:password@localhost/symfony_tests',
        'symfony_tests',
        'profiler_data',
      ),
    ),
    array(
      'mongodb://user:password@localhost/admin/symfony_tests/profiler_data',
      array(
        'mongodb://user:password@localhost/admin',
        'symfony_tests',
        'profiler_data',
      ),
    ),
    array(
      'mongodb://user:password@localhost:27009,localhost:27010/?replicaSet=rs-name&authSource=admin/symfony_tests/profiler_data',
      array(
        'mongodb://user:password@localhost:27009,localhost:27010/?replicaSet=rs-name&authSource=admin',
        'symfony_tests',
        'profiler_data',
      ),
    ),
  );
}