Example #1
0
 public function testGetAll()
 {
     $response = $this->represent->getAll('boundariez');
     $this->assertFalse($response, 'Failed: FALSE on 404');
     $response = $this->represent->getAll('boundaries', ['limit' => 1000]);
     $isJson = self::isJson($response);
     $this->assertTrue($isJson, 'Failed: getAll() not returning JSON');
 }
Example #2
0
 function testGetAll()
 {
     $path = 'boundaries';
     $params = ['sets' => 'toronto-wards,ottawa-wards'];
     $response = $this->represent->getAll($path, $params);
     $isJson = $this->isJson($response);
     $this->assertTrue($isJson, 'Failed: boundaries() not returning JSON');
     $decoded = json_decode($response, true);
     $this->assertInternalType("array", $decoded);
     $this->assertInternalType("array", $decoded[0]);
 }