CacheTool\CodeTest::testWriteToTampered PHP Method

testWriteToTampered() public method

public testWriteToTampered ( )
    public function testWriteToTampered()
    {
        if (defined('HHVM_VERSION')) {
            $this->markTestSkipped('HHVM does not support php://filter stream wrapper');
        }
        $file = sprintf("php://filter/write=string.rot13/resource=%s", $this->createFile());
        $code = Code::fromString('$a = 10; return $a;');
        $code->writeTo($file);
    }