Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
12.0
Description
Unit tests for PHP Code analysis module fail on Windows.
Run ant -f php/php.code.analysis test on Windows and it results in build failure.
Log from failure:
[junit] ?er 22, 2020 7:44:24 ODP. org.netbeans.modules.php.analysis.parsers.PHPStanReportParser getCurrentFile [junit] WARNING: Cannot get the current file: file name /home/junichi11/NetBeansProjects/PHPStan/app/Test1.php, root directory C:\D\netbeans\php\php.code.analysis\build\test\unit\data\phpstan\PHPStanSupport\netbeans3022 [junit] ?er 22, 2020 7:44:24 ODP. org.netbeans.modules.php.analysis.parsers.PHPStanReportParser getCurrentFile [junit] WARNING: Cannot get the current file: file name /home/junichi11/NetBeansProjects/PHPStan/app/Test2.php, root directory C:\D\netbeans\php\php.code.analysis\build\test\unit\data\phpstan\PHPStanSupport\netbeans3022 [junit] ------------- ---------------- --------------- [junit] Testcase: testParseNetBeans3022WithoutWorkDir(org.netbeans.modules.php.analysis.parsers.PHPStanReportParserTest): FAILED [junit] expected:<3> but was:<0> [junit] junit.framework.AssertionFailedError: expected:<3> but was:<0> [junit] at org.netbeans.modules.php.analysis.parsers.PHPStanReportParserTest.testParseNetBeans3022WithoutWorkDir(PHPStanReportParserTest.java:93) [junit] at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:77) [junit] at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:460) [junit] at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:386) [junit] at java.lang.Thread.run(Thread.java:748)
Attachments
Issue Links
- fixes
-
NETBEANS-3924 Tests for PHP editor modules not running
- Closed
- links to