Completed
Push — master ( d47933...c392d1 )
by smiley
04:38
created

ParserPregJitTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 2
dl 0
loc 9
rs 10
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