/** * @covers Redmine\Client * @test */ public function testGetPortReturnsPortFromConstructorUrlWithPort() { $client = new Client('http://test.local:8080', 'asdf'); $this->assertSame(8080, $client->getPort()); }