public function testProcessWithDistanceMatrixRequestAndAvoidTolls()
 {
     $request = new DistanceMatrixRequest();
     $request->addOrigin('Vancouver BC');
     $request->addDestination('San Francisco');
     $request->setAvoidTolls(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 tolls flag must be a boolean value.
  */
 public function testAvoidTollsWithInvalidValue()
 {
     $this->distanceMatrixRequest->setAvoidTolls('foo');
 }