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.

Bug 184598 - Triggering a PHP-Error will fail testresults.
Summary: Triggering a PHP-Error will fail testresults.
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: PHPUnit (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: issues@php
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-21 10:33 UTC by 11mb
Modified: 2010-09-17 05:31 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description 11mb 2010-04-21 10:33:37 UTC
When the code that is being tested triggers an php-error or the testcode itself this isn't being shown in the testresults or output.

In the Test Results tab it says:
'No test executed.(0,0 s)'
'Perhaps an error occured, verify in Ouput window.
The output window stays blanc.

That a PHP-Error the testresults will fail seems logical, but when it happens there is no information where or what went wrong.

First i thought i might have something misconfigurated and therefor the output isn't shown in the output window, but if the tests runs ok there is output.

In this case:
---
PHPUnit 3.4.12 by Sebastian Bergmann.

......

Time: 4 seconds, Memory: 6.50Mb

OK (6 tests, 16 assertions)
---

What i think is weird that Exceptions are shown very clear. When I add an Exception: throw new Exception('test');

everything stays tested and the exceptiontext is shown in the results.
It is also shown in the output window:
---
PHPUnit 3.4.12 by Sebastian Bergmann.

.....E

Time: 2 seconds, Memory: 6.50Mb

There was 1 error:

1) testFormbuilderSignInForm::testSetRequest
Exception: test

W:\intern\william\Checkouts\v4 volledig\tests\Formbuilder\testFormbuilderSignInForm.php:98

FAILURES!
Tests: 6, Assertions: 16, Errors: 1.
---

Thank you in advance for helping me out!
Comment 1 Tomas Mysik 2010-04-21 11:42:57 UTC
Please, attach an example file. Thanks.
Comment 2 Filip Zamboj 2010-09-15 12:37:38 UTC
batch reassigning