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); }
public function setUp() { $this->tempDir = TestUtil::getTempPath("wptTest_"); }