Neos\Flow\Tests\Unit\ResourceManagement\Streams\StreamWrapperAdapterTest::stream_castTest PHP Méthode

stream_castTest() public méthode

public stream_castTest ( )
    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));
    }