Ticket #168 (reopened task)

Opened 2 years ago

Last modified 13 months ago

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

Changed 23 months ago by xue

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from 3.1.0 to 3.1.1

Changed 23 months ago by xue

  • status changed from closed to reopened
  • resolution fixed deleted

Changed 13 months ago by xue

  • milestone 3.1.1 deleted
Note: See TracTickets for help on using tickets.