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());
 }
 public function testIsValidWithOriginAndDestination()
 {
     $this->distanceMatrixRequest->addDestination('foo');
     $this->distanceMatrixRequest->addOrigin('bar');
     $this->assertTrue($this->distanceMatrixRequest->isValid());
 }