Ejemplo n.º 1
0
 public function testGetRequestsWithDevtools()
 {
     global $SAMPLE_DEVTOOLS_REQUESTS;
     $this->tempDir = TestUtil::getTempPath("wptTest_");
     if (!copy(__DIR__ . "/data/sampleDevtools.json.gz", $this->tempDir . "/1_devtools.json.gz")) {
         $this->fail("Could not copy devtools file to temp dir.");
     }
     $actualRequests = getRequests("testId", $this->tempDir, 1, 0, $hasSecure, $hasLocations, false, false);
     $this->assertEquals($SAMPLE_DEVTOOLS_REQUESTS, $actualRequests);
 }
Ejemplo n.º 2
0
 public function setUp()
 {
     $this->tempDir = TestUtil::getTempPath("wptTest_");
 }