phpchunkit icon indicating copy to clipboard operation
phpchunkit copied to clipboard

Get rid of @testClass annotation

Open jwage opened this issue 9 years ago • 0 comments

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.

jwage avatar Oct 29 '16 00:10 jwage