return $result;
}
- protected function request($file, $method = 'GET', $payload = '')
+ protected function request($file, $method = 'GET', $payload = '', $emptyPageOk = false)
{
$url = $this->baseUrl . $file;
curl_close($ch);
$this->assertNotFalse($page);
+ if (!$emptyPageOk) {
+ $this->assertNotEquals('', $page);
+ }
$this->assertNotContains('Fatal error', $page);
$this->assertNotContains('Notice:', $page);