Sokil\Mongo\ClientPoolTest::testGetUnexistedConnection PHP Method

testGetUnexistedConnection() public method

    public function testGetUnexistedConnection()
    {
        $pool = new ClientPool(array('connect1' => array('dsn' => getenv('PHPMONGO_DSN') ? getenv('PHPMONGO_DSN') : null, 'defaultDatabase' => 'db2', 'mapping' => array('db1' => array('col1' => '\\Sokil\\Mongo\\Collection1', 'col2' => '\\Sokil\\Mongo\\Collection2'), 'db2' => array('col1' => '\\Sokil\\Mongo\\Collection3', 'col2' => '\\Sokil\\Mongo\\Collection4'))), 'connect2' => array('dsn' => getenv('PHPMONGO_DSN') ? getenv('PHPMONGO_DSN') : null, 'defaultDatabase' => 'db2', 'mapping' => array('db1' => array('col1' => '\\Sokil\\Mongo\\Collection5', 'col2' => '\\Sokil\\Mongo\\Collection6'), 'db2' => array('col1' => '\\Sokil\\Mongo\\Collection7', 'col2' => '\\Sokil\\Mongo\\Collection8')))));
        $pool->unexistedConnection;
    }