public function testCanOverrideSettingsAtConstruct() { $host = 'www.example.com'; $port = 8080; $hb = new HeartBeat($host, $port); $this->assertSame($host, $hb->getHost()); $this->assertSame($port, $hb->getPort()); }