for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
*
* @filesource ParserPregJitTest.php
* @created 09.02.2016
* @package chillerlan\BBCodeTest
* @author Smiley <[email protected]>
* @copyright 2015 Smiley
* @license MIT
*/
namespace chillerlan\BBCodeTest\php7;
use chillerlan\bbcode\Parser;
class ParserPregJitTest extends \PHPUnit_Framework_TestCase{
// this test will most likely throw an error in case pcre.jit=1
public function testPregError(){
$bbcode = file_get_contents(dirname(__FILE__).'/../bbcode_samples/errors/preg_jit.txt');
(new Parser)->parse($bbcode);
}