summaryrefslogtreecommitdiff
path: root/sapi/fpm/tests/tester.inc
diff options
context:
space:
mode:
Diffstat (limited to 'sapi/fpm/tests/tester.inc')
-rw-r--r--sapi/fpm/tests/tester.inc11
1 files changed, 9 insertions, 2 deletions
diff --git a/sapi/fpm/tests/tester.inc b/sapi/fpm/tests/tester.inc
index 001b7d6a54..188fd48859 100644
--- a/sapi/fpm/tests/tester.inc
+++ b/sapi/fpm/tests/tester.inc
@@ -513,7 +513,7 @@ class Tester
return new Response(null, true);
}
if (is_null($uri)) {
- $uri = $this->makeFile('src.php', $this->code);
+ $uri = $this->makeSourceFile();
}
$params = array_merge(
@@ -538,7 +538,6 @@ class Tester
],
$headers
);
-
try {
$this->response = new Response(
$this->getClient($address, $connKeepAlive)->request_data($params, false)
@@ -945,6 +944,14 @@ class Tester
}
/**
+ * @return string
+ */
+ public function makeSourceFile()
+ {
+ return $this->makeFile('src.php', $this->code);
+ }
+
+ /**
* @param string|null $msg
*/
private function message($msg)