Active
Project:
SimpleTest
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Mar 2011 at 11:47 UTC
Updated:
28 Mar 2011 at 11:47 UTC
In PHPUnit you can create test method as starting with 'test' or by adding @test annotation in PHPDoc block (see http://www.phpunit.de/manual/current/en/writing-tests-for-phpunit.html). I find the latter very convenient, but SimpleTest lacks support for @test annotation.
I thought it would be great if it's possible to write tests like:
/**
* Just a test.
* @test
*/
public function justTest() {
// test something
}
Here is a small patch for D7 SimpleTest that adds support for @test annotations.
I'll backport patch to 6.x-2.x if feature is confirmed.
P.S. Sorry if posted in wrong place.
| Comment | File | Size | Author |
|---|---|---|---|
| test-annotation-for-simpletest.patch | 1.59 KB | p0deje |