Exemplo n.º 1
0
 public function test_max_mind()
 {
     $driver = m::mock(MaxMind::class);
     $driver->makePartial()->shouldAllowMockingProtectedMethods()->shouldReceive('process')->once()->andReturn(new Fluent())->shouldReceive('hydrate')->once()->andReturn(new Position());
     Location::setDriver($driver);
     $this->assertInstanceOf(Position::class, Location::get());
 }