Exemplo n.º 1
0
 /**
  * testDefaults
  *
  * @dataProvider defaultsProvider
  * @return void
  */
 public function testDefaults($url, $expected)
 {
     $dsn = new CacheDsn($url);
     $return = $dsn->toArray();
     $this->assertSame($expected, $return, 'The url should parse as expected');
     $return = $dsn->__toString();
     $this->assertSame($url, $return, 'The dsn should parse back to the same url');
 }