Added an automatic test: stressing import.php

SVN:trunk[823]
This commit is contained in:
Romain Quetiez
2010-09-12 08:42:49 +00:00
parent e43ba5f2db
commit fe8ebc6c31
2 changed files with 61 additions and 5 deletions

View File

@@ -252,7 +252,15 @@ abstract class TestWebServices extends TestHandler
$fp = @fopen($sUrl, 'rb', false, $ctx);
if (!$fp)
{
throw new Exception("Problem with $sUrl, $php_errormsg");
global $php_errormsg;
if (isset($php_errormsg))
{
throw new Exception("Problem with $sUrl, $php_errormsg");
}
else
{
throw new Exception("Problem with $sUrl");
}
}
$response = @stream_get_contents($fp);
if ($response === false)