Ticket #168 (reopened task)
Add unit test stubs for missing unit tests
| Reported by: | knut | Owned by: | xue |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Prado Framework v3 | Version: | 3.1 |
| Severity: | feature | Keywords: | |
| Cc: |
Description
We should try to generate unit tests stubs for missing unit tests and throw a PHPUnit2_Framework_IncompleteTestError exception from all unit tests that is incomplete. This will be helpfull for people who want to help out writing unit tests you have a skeleton to work from.
The following skeleton could be used as a base and will work nicely with our unit test setup with Phing:
<?php
require_once dirname(__FILE__).'/path/to/phpunit2.php';
Prado::using('Path.To.Component');
/**
* @package Path.To.Package
*/
class TNameOfComponentTest extends PHPUnit2_Framework_TestCase {
public function testSetFoo() {
throw new PHPUnit2_Framework_IncompleteTestError();
}
public function testSetBar() {
throw new PHPUnit2_Framework_IncompleteTestError();
}
}
?>
Change History
Note: See
TracTickets for help on using
tickets.
