public function __construct($scheme, $host = false) { $this->scheme = $scheme; $this->host = $host; parent::__construct(sprintf('It is no stream wrapper registered for scheme %s://%s!', $scheme, $host)); }
public function __construct($srcPathname, Exception $previous = null) { $this->pathname = $srcPathname; parent::__construct(sprintf('There file %s does not support streaming!', $srcPathname), 0, $previous); }
public function testGetOperation() { $e = new StreamException(StreamException::OP_READ, 'foo'); $this->assertEquals(StreamException::OP_READ, $e->getOperation()); }