atomphp/atom — Issue #6: Testing Framework
Author: nerdsrescueme
Created: 2011-11-02 20:32:40+00:00
State: open

I think it would be possible and beneficial to leverage Source to perform our class unit testing. I'm not sure of the best way to do it, but maybe something like this.

```php
/**
* Class Title
*
* Description here.
*
* @assert_creation
* @assert_*
*/
class Test {

/**
* Method description
*
* @assert_true dataFromSetupBelow (Tests return value === false)
* @assert_false invalidDataBelow
*/
public function method()
{
// do something
}

}

/**
* TEST

(some php setup or callbacks here)

*/
```