This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When running a PHPUnit test for a thrown exception, the "Test Results" window does not show the failed tests. It also shows an incorrect count of tests run. To reproduce, add these two methods to any PHPUnit test class: public function testWorksAndWindowHasCorrectOutput () { $this->setExpectedException('\Exception'); throw new \Exception('foo'); } public function testFailsButWindowShowsAllPassed () { $this->setExpectedException('\Exception'); } The "Output" window displays the correct number of tests, (2) in this case. One has passed the other has failed. The "Test Results" window display a 100% pass with (1) test.
In my case, the Test Results window says: No tests executed. Will investigate it. Thanks. Product Version: NetBeans IDE Dev (Build 20150423-63b24b1c43e0) Java: 1.7.0_80; Java HotSpot(TM) 64-Bit Server VM 24.80-b11 Runtime: Java(TM) SE Runtime Environment 1.7.0_80-b15 System: Linux version 3.16.0-34-generic running on amd64; UTF-8; cs_CZ (nb)
Should be fixed now, please verify. Thanks for catching that. http://hg.netbeans.org/web-main/rev/1ff6dd944d28
Integrated into 'main-silver', will be available in build *201504240001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/1ff6dd944d28 User: Tomas Mysik <tmysik@netbeans.org> Log: #251749 - Wrong results shown for exception test