<?php require_once __DIR__ . '/vendor/autoload.php'; use Fedcomp\BrainLoller; use DerAlex\Phprainfuck\Phprainfuck; $brainloller = new BrainLoller(); $brainfuck = new Phprainfuck(); $brainloller->init(__DIR__ . '/tests/images/hello-world.png'); echo $brainfuck->evaluate($brainloller->getCode());
public function testFileHandle() { $this->assertEquals(152, strlen($this->brainloller->init(fopen(__DIR__ . self::HELLO_WORLD, 'r'))->getCode())); }