Working on those unit tests.
This commit is contained in:
parent
5198091371
commit
fcc46d6bfd
4 changed files with 182 additions and 78 deletions
|
@ -1,33 +1,52 @@
|
|||
<?php
|
||||
|
||||
//$places = new joshtronic\GooglePlaces('AIzaSyCT6dVNQaPTRsXwDqb1CjoUJncyzGqKDPY');
|
||||
|
||||
require_once '../src/GooglePlaces.php';
|
||||
require_once '../src/GooglePlacesInterface.php';
|
||||
require_once '../src/GooglePlacesClient.php';
|
||||
|
||||
class GooglePlacesTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testNearbySearchProximity()
|
||||
{
|
||||
public function testSetVariable()
|
||||
{
|
||||
$places = new joshtronic\GooglePlaces('');
|
||||
$places->foo = 'bar';
|
||||
$this->assertEquals('bar', $places->foo);
|
||||
}
|
||||
|
||||
}
|
||||
public function testNearbySearchProximity()
|
||||
{
|
||||
$client = $this->getMock('GooglePlacesInterface', array('get'));
|
||||
|
||||
public function testNearbySearchDistance()
|
||||
{
|
||||
$client->expects($this->exactly(1))
|
||||
->method('get')
|
||||
->will($this->returnValue('some return i expect'));
|
||||
|
||||
}
|
||||
$places = new joshtronic\GooglePlaces('', $client);
|
||||
$places->location = array(-33.86820, 151.1945860);
|
||||
$places->radius = 800;
|
||||
$results = $places->nearbySearch();
|
||||
}
|
||||
|
||||
public function testNearbySearchPagination()
|
||||
{
|
||||
public function testNearbySearchDistance()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public function testRadarSearch()
|
||||
{
|
||||
public function testNearbySearchPagination()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public function testDetails()
|
||||
{
|
||||
public function testRadarSearch()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public function testDetails()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue