コード例 #1
0
 /**
  * @param resource $stream The stream to write to
  * @param ICompiler $compiler The response compiler to use
  * @throws InvalidArgumentException Thrown if the stream is not a resource
  */
 public function __construct($stream, ICompiler $compiler)
 {
     if (!is_resource($stream)) {
         throw new InvalidArgumentException("The stream must be a resource");
     }
     parent::__construct($compiler);
     $this->stream = $stream;
 }
コード例 #2
0
 public function __construct()
 {
     parent::__construct(new MockCompiler());
 }