public function testBaseUrlCustomUrl() { $steamId = new SteamId('Son_of_Thor', false); $this->assertEquals('son_of_thor', $steamId->getCustomUrl()); $baseUrl = (new \ReflectionObject($steamId))->getMethod('getBaseUrl'); $baseUrl->setAccessible(true); $this->assertEquals('http://steamcommunity.com/id/son_of_thor', $baseUrl->invoke($steamId)); }
public function testBaseUrlCustomUrl() { $steamId = new SteamId('Son_of_Thor', false); $this->assertEquals('son_of_thor', $steamId->getCustomUrl()); $this->assertEquals('http://steamcommunity.com/id/son_of_thor', $steamId->getBaseUrl()); }