Working on those unit tests.

This commit is contained in:
Josh Sherman 2014-09-15 23:18:05 -04:00
parent 5198091371
commit fcc46d6bfd
4 changed files with 182 additions and 78 deletions

View file

@ -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()
{
}
}
?>