diff options
author | Florian Pritz <bluewind@xinu.at> | 2016-07-22 14:31:11 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2016-07-31 16:55:39 +0200 |
commit | cf7fc454ec1789603b360d69db83faf49b1e3ef1 (patch) | |
tree | 4f15ea013cb1af4513f4d5bba3369af5e24d90ac /application/test/Test.php | |
parent | 1a39024190329a002be034d29979e1e8e5902607 (diff) |
Add code coverage output
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/test/Test.php')
-rw-r--r-- | application/test/Test.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/application/test/Test.php b/application/test/Test.php index 925fe131e..a0ebf880e 100644 --- a/application/test/Test.php +++ b/application/test/Test.php @@ -26,6 +26,7 @@ class TestMore extends \TestMore { abstract class Test { protected $t; protected $server = ""; + private $testid = ""; public function __construct() { @@ -38,6 +39,11 @@ abstract class Test { $this->server = $server; } + public function setTestID($testid) + { + $this->testid = $testid; + } + // Method: POST, PUT, GET etc // Data: array("param" => "value") ==> index.php?param=value // Source: http://stackoverflow.com/a/9802854/953022 @@ -77,6 +83,7 @@ abstract class Test { curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_HTTPHEADER, array( "Accept: application/json", + "X-Testsuite-Testname: API request from ".$this->testid, "Expect: ", )); |