Skip to content
This repository was archived by the owner on Apr 14, 2025. It is now read-only.
This repository was archived by the owner on Apr 14, 2025. It is now read-only.

Get rid of @testClass annotation #33

@jwage

Description

@jwage

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions