/**
  * @test
  */
 public function stream_castTest()
 {
     if (defined('HHVM_VERSION')) {
         $this->markTestSkipped('stream_cast is not supported in HHVM (see http://docs.hhvm.com/manual/en/streamwrapper.stream-cast.php)');
     }
     $castAs = STREAM_CAST_FOR_SELECT;
     $this->mockStreamWrapper->expects($this->once())->method('cast')->with($castAs)->will($this->returnValue(true));
     $this->assertTrue($this->streamWrapperAdapter->stream_cast($castAs));
 }
 /**
  * @test
  */
 public function stream_castTest()
 {
     $castAs = STREAM_CAST_FOR_SELECT;
     $this->mockStreamWrapper->expects($this->once())->method('cast')->with($castAs)->will($this->returnValue(TRUE));
     $this->assertTrue($this->streamWrapperAdapter->stream_cast($castAs));
 }