phpchunkit
phpchunkit copied to clipboard
Get rid of @testClass annotation
Replace it by guessing the location of the test automatically based on the class name.
<?php
namespace PHPChunkit;
use PHP_Token_Stream;
/**
* @testClass PHPChunkit\Test\TestCounterTest
*/
class TestCounter
{
// ...
}
When you are runningphpchunkit watch and you save TestCounter.php, the PHPChunkit\Test\TestCounterTest class will be executed.
The problem is people organize tests a few different ways as far I have seen so we could maybe guess based on the known patterns people use to find the associated unit test.