Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

Commit

Permalink
Updated tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Brecht-Precht committed Apr 26, 2016
1 parent 768abad commit b91eba3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/GooglePlacesDetailQueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ public function __construct()

public function testQuerySuccess()
{
if($this->googlePlacesApiKey === false){
$this->markTestSkipped('Google Places query test was skipped. No API key found.');
}

// Perform lookup
$googlePlacesDetailQuery = new GooglePlacesDetailQuery();
$googlePlacesDetailQuery
Expand Down Expand Up @@ -82,6 +86,9 @@ public function testQuerySuccess()

public function testQueryNoResults()
{
if($this->googlePlacesApiKey === false){
$this->markTestSkipped('Google Places query without results test was skipped. No API key found.');
}
$this->setExpectedException(get_class(new CommonException\ApiException\NoResultException()));
$googlePlacesDetailQuery = new GooglePlacesDetailQuery();
$googlePlacesDetailQuery
Expand Down

0 comments on commit b91eba3

Please sign in to comment.