@tmysik Thanks for you answer! OK, we should test both nette.min.php and Mpdf :)
I'm going to change to the following:
```java
public void testBigFile_01() throws Exception {
testBigFile("testfiles/parser/performance/Mpdf.php"); // 1.01MB
}
public void testBigFile_02() throws Exception {
testBigFile("testfiles/actions/testImportData/libs/nette.min.php"); //
537KB
}
private void testBigFile(String filePath) throws Exception {
File testFile = new File(getDataDir(), filePath);
assertTrue(testFile.exists());
String testSource = TestUtilities.copyFileToString(testFile);
ASTPHP5Scanner scanner = new ASTPHP5Scanner(new
StringReader(testSource));
ASTPHP5Parser parser = new ASTPHP5Parser(scanner);
Date start = new Date();
Symbol root = parser.parse();
Date end = new Date();
long time = end.getTime() - start.getTime();
System.out.println("Parsing of big files takes: " + time);
assertTrue(time < 2500);
}
```
[ Full content available at:
https://github.com/apache/incubator-netbeans/pull/751 ]
This message was relayed via gitbox.apache.org for [email protected]