Stevebauman\Location\Tests\LocationTest::test_ip_info PHP Метод

test_ip_info() публичный Метод

public test_ip_info ( )
    public function test_ip_info()
    {
        $driver = m::mock(IpInfo::class)->makePartial();
        $driver->shouldAllowMockingProtectedMethods()->shouldReceive('process')->once()->andReturn(new Fluent());
        Location::setDriver($driver);
        $this->assertInstanceOf(Position::class, Location::get());
    }