git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make charset-related tests more friendly to hhvm; stricter tests for demo files
[plcapi.git]
/
tests
/
LocalFileTestCase.php
diff --git
a/tests/LocalFileTestCase.php
b/tests/LocalFileTestCase.php
index
688e0df
..
59818c8
100644
(file)
--- a/
tests/LocalFileTestCase.php
+++ b/
tests/LocalFileTestCase.php
@@
-41,7
+41,7
@@
abstract class PhpXmlRpc_LocalFileTestCase extends PHPUnit_Framework_TestCase
return $result;
}
return $result;
}
- protected function request($file, $method = 'GET', $payload = '')
+ protected function request($file, $method = 'GET', $payload = ''
, $emptyPageOk = false
)
{
$url = $this->baseUrl . $file;
{
$url = $this->baseUrl . $file;
@@
-68,6
+68,9
@@
abstract class PhpXmlRpc_LocalFileTestCase extends PHPUnit_Framework_TestCase
curl_close($ch);
$this->assertNotFalse($page);
curl_close($ch);
$this->assertNotFalse($page);
+ if (!$emptyPageOk) {
+ $this->assertNotEquals('', $page);
+ }
$this->assertNotContains('Fatal error', $page);
$this->assertNotContains('Notice:', $page);
$this->assertNotContains('Fatal error', $page);
$this->assertNotContains('Notice:', $page);