fix test coverage calculations
[plcapi.git] / tests / 7ExtraTest.php
index ff2d056..48acf6b 100644 (file)
@@ -2,20 +2,34 @@
 
 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['HTTPSERVER'] . '/' . str_replace( '/demo/server/server.php', 'tests/phpunit_coverage.php', $this->args['HTTPURI'] );
+    }
 
-        $this->coverageScriptUrl = 'http://' . $this->args['LOCALSERVER'] . '/' . str_replace( '/demo/server/server.php', 'tests/phpunit_coverage.php', $this->args['URI'] );
+    /**
+     * @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
+}