Exemplo n.º 1
0
<?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());
Exemplo n.º 2
0
 public function testFileHandle()
 {
     $this->assertEquals(152, strlen($this->brainloller->init(fopen(__DIR__ . self::HELLO_WORLD, 'r'))->getCode()));
 }