small gha workflow improvement
[plcapi.git] / tests / 9ExtraFilesTest.php
index 64b2d8a..a88bace 100644 (file)
@@ -1,18 +1,18 @@
 <?php
 
-include_once __DIR__ . '/LocalFileTestCase.php';
+include_once __DIR__ . '/WebTestCase.php';
 
 /**
  * Tests for php files in the 'extras' directory
  *
  */
-class ExtraFilesTest extends PhpXmlRpc_LocalFileTestCase
+class ExtraFilesTest extends PhpXmlRpc_WebTestCase
 {
     public function set_up()
     {
         $this->args = argParser::getArgs();
 
-        $this->baseUrl = $this->args['HTTPSERVER'] . str_replace( '/demo/server/server.php', '/tests/', $this->args['HTTPURI'] );
+        $this->baseUrl = $this->args['HTTPSERVER'] . str_replace( '/demo/server/server.php', '/extras/', $this->args['HTTPURI'] );
 
         $this->coverageScriptUrl = 'http://' . $this->args['HTTPSERVER'] . '/' . str_replace( '/demo/server/server.php', 'tests/phpunit_coverage.php', $this->args['HTTPURI'] );
     }
@@ -32,4 +32,10 @@ class ExtraFilesTest extends PhpXmlRpc_LocalFileTestCase
     {
         $page = $this->request('verify_compat.php');
     }
+
+    public function testVarDemo()
+    {
+        $this->baseUrl = str_replace('/extras/', '/demo/', $this->baseUrl);
+        $page = $this->request('vardemo.php');
+    }
 }