TestFileSystemStream::register PHP Method

register() public static method

Registers a protocol.
public static register ( string $protocol ) : boolean
$protocol string Protocol name
return boolean
    public static function register($protocol)
    {
        return stream_wrapper_register((string) $protocol, __CLASS__);
    }

Usage Example

Example #1
0
 /**
  * Prepares the testing environment..
  */
 protected function setUp()
 {
     require_once DIR_FILES . '/beholder/TestFileSystemStream.php';
     \TestFileSystemStream::register($this->protocol);
 }