streams/tests/FailWrapper.php
Andy Scherzinger d95aa6fa7e
chore: Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-06-02 20:52:50 +02:00

21 lines
417 B
PHP

<?php
/**
* SPDX-FileCopyrightText: 2020 Robin Appelman <robin@icewind.nl>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace Icewind\Streams\Tests;
class FailWrapper extends \Icewind\Streams\NullWrapper {
public static function wrap($source) {
return self::wrapSource($source);
}
public function stream_read($count) {
return false;
}
public function stream_write($data) {
return false;
}
}