fix test coverage calculations
[plcapi.git] / tests / 7ExtraTest.php
index 14488e8..48acf6b 100644 (file)
@@ -4,20 +4,32 @@ include_once __DIR__ . '/LocalFileTestCase.php';
 
 /**
  * Tests for php files in the 'extras' directory
+ *
  */
 class ExtraTest extends PhpXmlRpc_LocalFileTestCase
 {
-    public function setUp()
+    public function set_up()
     {
         $this->args = argParser::getArgs();
 
-        $this->baseUrl = $this->args['LOCALSERVER'] . str_replace( '/demo/server/server.php', '/tests/', $this->args['URI'] );
+        $this->baseUrl = $this->args['HTTPSERVER'] . str_replace( '/demo/server/server.php', '/tests/', $this->args['HTTPURI'] );
 
-        $this->coverageScriptUrl = 'http://' . $this->args['LOCALSERVER'] . '/' . str_replace( '/demo/server/server.php', 'tests/phpunit_coverage.php', $this->args['URI'] );
+        $this->coverageScriptUrl = 'http://' . $this->args['HTTPSERVER'] . '/' . str_replace( '/demo/server/server.php', 'tests/phpunit_coverage.php', $this->args['HTTPURI'] );
     }
 
+    /**
+     * @todo collect code coverage for this...
+     */
+    public function testBenchmark()
+    {
+        $page = $this->request('benchmark.php');
+    }
+
+    /**
+     * @todo collect code coverage for this...
+     */
     public function testVerifyCompat()
     {
         $page = $this->request('verify_compat.php');
     }
-}
\ No newline at end of file
+}