Ticket #240 (new defect)

Opened 2 months ago

phing test succesful while phpunit test is broken

Reported by: Oleg Marchuk <kingoleg@mail.ru> Assigned to: mrook
Priority: major Milestone: 2.3.1
Component: phing-tasks-phpunit Version: 2.3.0
Keywords: Cc:

Description

I have a tests, that is broken because it cause PHP error (call to method without param while param is required). Where I call phpunit from command line I get:

PHPUnit 3.2.16 by Sebastian Bergmann.

E

Time: 0 seconds

There was 1 error:

1) testMethod(ClazzTest)
Missing argument 1 for Clazz::method(), called in /home/oleg/workspace/phpunit/ClazzTest.php on line 10 and defined
/home/oleg/workspace/phpunit/Clazz.php:6
/home/oleg/workspace/phpunit/ClazzTest.php:10

FAILURES!
Tests: 1, Errors: 1.

When I call phing test, I get:

Buildfile: /home/oleg/workspace/phpunit/build.xml
 [property] Loading /home/oleg/workspace/phpunit/./build.properties

Telme > clean:

   [delete] Deleting directory /home/oleg/workspace/phpunit/build

Telme > init:

    [mkdir] Created dir: /home/oleg/workspace/phpunit/build

Telme > test:

    [mkdir] Created dir: /home/oleg/workspace/phpunit/build/reports
    [mkdir] Created dir: /home/oleg/workspace/phpunit/build/reports/tests
[PHP Error] Missing argument 1 for Clazz::method(), called in /home/oleg/workspace/phpunit/ClazzTest.php on line 10 and defined [line 6 of /home/oleg/workspace/phpunit/Clazz.php]

BUILD FINISHED

Total time: 0.1198 seconds

And there is no failures or errors in testsuites.xml.

I attach sample to illustrate the problem

Attachments

build.properties (208 bytes) - added by Oleg Marchuk <kingoleg@mail.ru> on 03/27/08 15:12:33.
build.xml (1.1 kB) - added by Oleg Marchuk <kingoleg@mail.ru> on 03/27/08 15:12:43.
Clazz.php (111 bytes) - added by Oleg Marchuk <kingoleg@mail.ru> on 03/27/08 15:12:51.
ClazzTest.php (248 bytes) - added by Oleg Marchuk <kingoleg@mail.ru> on 03/27/08 15:12:59.

Change History

03/27/08 15:12:33 changed by Oleg Marchuk <kingoleg@mail.ru>

  • attachment build.properties added.

03/27/08 15:12:43 changed by Oleg Marchuk <kingoleg@mail.ru>

  • attachment build.xml added.

03/27/08 15:12:51 changed by Oleg Marchuk <kingoleg@mail.ru>

  • attachment Clazz.php added.

03/27/08 15:12:59 changed by Oleg Marchuk <kingoleg@mail.ru>

  • attachment ClazzTest.php added.

Add/Change #240 (phing test succesful while phpunit test is broken)