-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathWeatherOverviewTest.php
More file actions
27 lines (23 loc) · 931 Bytes
/
WeatherOverviewTest.php
File metadata and controls
27 lines (23 loc) · 931 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
namespace ProgrammatorDev\OpenWeatherMap\Test\Unit\OneCall;
use ProgrammatorDev\OpenWeatherMap\Entity\Coordinate;
use ProgrammatorDev\OpenWeatherMap\Entity\OneCall\WeatherOverview;
use ProgrammatorDev\OpenWeatherMap\Entity\Timezone;
use ProgrammatorDev\OpenWeatherMap\Test\AbstractTest;
class WeatherOverviewTest extends AbstractTest
{
public function testMethods()
{
$entity = new WeatherOverview([
'lat' => 50,
'lon' => 50,
'tz' => '+00:00',
'date' => '2025-01-01',
'weather_overview' => 'Weather overview text'
]);
$this->assertInstanceOf(Coordinate::class, $entity->getCoordinate());
$this->assertInstanceOf(Timezone::class, $entity->getTimezone());
$this->assertInstanceOf(\DateTimeImmutable::class, $entity->getDateTime());
$this->assertSame('Weather overview text', $entity->getOverview());
}
}