[
https://issues.apache.org/jira/browse/NETBEANS-4478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tomáš Procházka closed NETBEANS-4478.
-------------------------------------
> Unit tests for PHP Code analysis fail on Windows
> ------------------------------------------------
>
> Key: NETBEANS-4478
> URL: https://issues.apache.org/jira/browse/NETBEANS-4478
> Project: NetBeans
> Issue Type: Bug
> Components: php - Code Analysis
> Affects Versions: 12.0
> Reporter: Tomáš Procházka
> Assignee: Tomáš Procházka
> Priority: Major
> Labels: pull-request-available
> Fix For: 12.1
>
> Time Spent: 1h 40m
> Remaining Estimate: 0h
>
> 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:
> {noformat}
> [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)
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists