getPort() public method

public getPort ( ) : integer
return integer
Example #1
0
 /**
  * @param string $dsn  DSN
  * @param int    $port Port
  *
  * @dataProvider portValues
  */
 public function testPort($dsn, $port)
 {
     $dsn = new RedisDsn($dsn);
     $this->assertSame($port, $dsn->getPort());
 }