TestFileSystemStream::register PHP 메소드

register() 공개 정적인 메소드

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

Usage Example

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