weather = new Weather(200, $this->description, $this->iconName); } public function test__toString() { $expectDescription = $this->description; $description = $this->weather->__toString(); $this->assertSame($expectDescription, $description); } public function testGetIconUrl() { $expectIconLink = '//openweathermap.org/img/w/11d.png'; $weather = $this->weather; $iconLink = $weather->getIconUrl(); $this->assertSame($expectIconLink, $iconLink); } public function testSetIconUrlTemplate() { $expectIconLink = '//openweathermap.org'; $weather = $this->weather; $weather::setIconUrlTemplate($expectIconLink); $resultLink = $weather->getIconUrl(); $this->assertSame($expectIconLink, $resultLink); } }