Changeset 519d6f3


Ignore:
Timestamp:
11/01/11 11:14:52 (7 months ago)
Author:
mrook
Branches:
master
Children:
d401315
Parents:
9da533b
git-author:
Michiel Rook <mrook@…> (11/01/11 11:14:52)
git-committer:
Michiel Rook <mrook@…> (11/01/11 11:14:52)
Message:

Rearrange phpunit unit tests

Location:
test
Files:
2 deleted
2 edited
2 moved

Legend:

Unmodified
Added
Removed
  • test/classes/phing/tasks/ext/PHPUnitTaskTest.php

    raf7d1f7 r519d6f3  
    2929 */ 
    3030class PHPUnitTaskTest extends BuildFileTest {  
     31    protected $backupGlobals = FALSE; 
    3132         
    3233    public function setUp() 
     
    3738    /** 
    3839     * Regression test for http://www.phing.info/trac/ticket/655 
    39      * "PlainPHPUnitResultFormatter does not display errors if @dataProvider was used" 
     40     * "PlainPHPUnitResultFormatter does not display errors if dataProvider was used" 
    4041     */ 
    4142    public function testPlainFormatterDataProvider() 
     
    4445        $this->assertInLogs("Tests run: 2, Failures: 1, Errors: 0, Incomplete: 0, Skipped: 0, Time elapsed:"); 
    4546    } 
     47 
     48    /**     
     49     * Regression test for ticket http://www.phing.info/trac/ticket/363 
     50     * "PHPUnit task fails with formatter type 'xml'" 
     51     */ 
     52    public function testHelloWorld() { 
     53      $this->executeTarget(__FUNCTION__); 
     54      $this->assertInLogs("<testcase name=\"testSayHello\" class=\"HelloWorldTest\""); 
     55    } 
     56     
    4657} 
  • test/etc/tasks/ext/phpunit/build.xml

    raf7d1f7 r519d6f3  
    1111                        </batchtest> 
    1212                </phpunit> 
    13          </target> 
     13        </target> 
     14 
     15        <target name="testHelloWorld"> 
     16                <phpunit haltonerror="true" haltonfailure="true" 
     17                        printsummary="true"> 
     18                        <formatter type="xml" usefile="false"/> 
     19                        <formatter type="plain" usefile="false"/> 
     20                        <batchtest> 
     21                                <fileset dir="."> 
     22                                        <include name="HelloWorldTest.php"/> 
     23                                </fileset> 
     24                        </batchtest> 
     25                </phpunit> 
     26        </target> 
    1427</project> 
Note: See TracChangeset for help on using the changeset viewer.