The resource manager will register configured stream wrappers with this class, enabling the use of Flow goodies like DI in those stream wrappers. Instances of this class are created by PHP itself and therefore are unknown to Flow's object registry.
 /**
  * @test
  */
 public function url_statTest()
 {
     $path = 'mockScheme1://foo/bar';
     $flags = STREAM_URL_STAT_LINK;
     $this->streamWrapperAdapter->expects($this->once())->method('createStreamWrapper')->with($path);
     $this->mockStreamWrapper->expects($this->once())->method('pathStat')->with($path, $flags)->will($this->returnValue(true));
     $this->assertTrue($this->streamWrapperAdapter->url_stat($path, $flags));
 }
 /**
  * Initialize the stream wrappers.
  *
  * @param Bootstrap $bootstrap
  * @return void
  */
 public static function initializeResources(Bootstrap $bootstrap)
 {
     StreamWrapperAdapter::initializeStreamWrapper($bootstrap->getObjectManager());
 }