Completed
Push — master ( 8f4937...fedf49 )
by smiley
03:03
created

ParserPregJitTest::testPregError()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
/**
3
 *
4
 * @filesource   ParserPregJitTest.php
5
 * @created      09.02.2016
6
 * @package      chillerlan\BBCodeTest
7
 * @author       Smiley <[email protected]>
8
 * @copyright    2015 Smiley
9
 * @license      MIT
10
 */
11
12
namespace chillerlan\BBCodeTest\php7;
13
14
use chillerlan\bbcode\Parser;
15
16
class ParserPregJitTest extends \PHPUnit_Framework_TestCase{
17
18
	// this test will most likely throw an error in case pcre.jit=1
19
	public function testPregError(){
20
		$bbcode = file_get_contents(dirname(__FILE__).'/../bbcode_samples/errors/preg_jit.txt');
21
		(new Parser)->parse($bbcode);
22
	}
23
24
}
25