public function testProcessWithDistanceMatrixRequestAndAvoidHighways()
 {
     $request = new DistanceMatrixRequest();
     $request->addOrigin('Vancouver BC');
     $request->addDestination('San Francisco');
     $request->setAvoidHighways(true);
     $response = $this->service->process($request);
     $this->assertCount(1, $response->getOrigins());
     $this->assertCount(1, $response->getDestinations());
     $rows = $response->getRows();
     $this->assertCount(1, $rows);
     $elements = $rows[0]->getElements();
     $this->assertCount(1, $elements);
     $this->assertSame(DistanceMatrixElementStatus::OK, $elements[0]->getStatus());
 }
 /**
  * @expectedException \Ivory\GoogleMap\Exception\DistanceMatrixException
  * @expectedExceptionMessage The distance matrix request avoid hightways flag must be a boolean value.
  */
 public function testAvoidHighwaysWithInvalidValue()
 {
     $this->distanceMatrixRequest->setAvoidHighways('foo');
 }