-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGeoTest.php
32 lines (26 loc) · 833 Bytes
/
GeoTest.php
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
28
29
30
31
32
<?php
namespace Tests;
use Sk\Geo\Locale;
use Sk\Geo\Location\MaxmindLocation;
use Sk\Geo\Money;
class GeoTest extends TestCase
{
protected $geo;
protected function setUp(): void
{
parent::setUp();
$this->geo = $this->app->make('geo');
}
public function test_it_access_by_methods()
{
$this->assertInstanceOf(Locale::class, $this->geo->locale());
$this->assertInstanceOf(MaxmindLocation::class, $this->geo->location());
$this->assertInstanceOf(Money::class, $this->geo->money());
}
public function test_it_access_by_properties()
{
$this->assertInstanceOf(Locale::class, $this->geo->locale);
$this->assertInstanceOf(MaxmindLocation::class, $this->geo->location);
$this->assertInstanceOf(Money::class, $this->geo->money);
}
}