Pheasant\Tests\DsnTest::testParsingADsn PHP Method

testParsingADsn() public method

public testParsingADsn ( )
    public function testParsingADsn()
    {
        $dsn = new Dsn("mysqli://user:pass@hostname:3306/mydb");
        $this->assertEquals($dsn->scheme, 'mysqli');
        $this->assertEquals($dsn->user, 'user');
        $this->assertEquals($dsn->pass, 'pass');
        $this->assertEquals($dsn->host, 'hostname');
        $this->assertEquals($dsn->port, 3306);
        $this->assertEquals($dsn->database, 'mydb');
    }