Overview

Namespaces

  • Peridot
    • WebDriverManager
      • Binary
        • Decompression
        • Request
      • Console
      • Event
      • OS
      • Process
      • Test
  • PHP

Classes

  • TestDecompressor
  • Overview
  • Namespace
  • Class
  • Tree
 1: <?php
 2: namespace Peridot\WebDriverManager\Test;
 3: 
 4: use Peridot\WebDriverManager\Binary\Decompression\BinaryDecompressorInterface;
 5: 
 6: /**
 7:  * TestDecompressor is used as a stub for testing decompression.
 8:  *
 9:  * @package Peridot\WebDriverManager\Test
10:  */
11: class TestDecompressor implements BinaryDecompressorInterface
12: {
13:     public $decompressedPath;
14: 
15:     public $targetPath;
16: 
17:     public function setTargetPath($path)
18:     {
19:         $this->targetPath = $path;
20:     }
21: 
22:     public function extract($compressedFilePath, $directory)
23:     {
24:         $this->decompressedPath = $compressedFilePath;
25:         file_put_contents($this->targetPath, 'binarydata');
26:     }
27: } 
28: 
WebDriver Manager API documentation generated by ApiGen