<?php
/**
 * Generated by build/gen_test
 */
use LightnCandy\LightnCandy;
use LightnCandy\Runtime;
use LightnCandy\SafeString;

require_once(__DIR__ . '/test_util.php');

class LightnCandyTest extends PHPUnit_Framework_TestCase
{
    /**
     * @covers LightnCandy\LightnCandy::handleError
     */
    public function testOn_handleError() {
        $method = new \ReflectionMethod('LightnCandy\LightnCandy', 'handleError');
        $method->setAccessible(true);
        $this->assertEquals(false, $method->invokeArgs(null, array_by_ref(array(
            array('error' => array())
        ))));
        $this->assertEquals(true, $method->invokeArgs(null, array_by_ref(array(
            array('error' => array('some error'), 'flags' => array('errorlog' => 0, 'exception' => 0))
        ))));
    }
}
?>