Version: 2.6.1
Bug Description
When extending Tester\TestCase without /** @TestCase */ annotation, test case report only first failing test.
Steps To Reproduce
<?php
declare(strict_types = 1);
use Tester\Assert;
use Tester\Environment;
use Tester\TestCase;
require __DIR__ . '/../vendor/autoload.php';
Environment::setup();
final class FooTest extends TestCase
{
public function testOne(): void
{
Assert::true(false);
}
public function testTwo(): void
{
Assert::false(true);
}
}
(new FooTest)->run();
Expected Behavior
TestCase reports all failing tests, regardless to the existence of the annotation.
According to Documentation, there's a flag for stoping on first failing test (not used).
Note
When testCase annotation is added, tests work properly.
Version: 2.6.1
Bug Description
When extending Tester\TestCase without
/** @TestCase */annotation, test case report only first failing test.Steps To Reproduce
Expected Behavior
TestCase reports all failing tests, regardless to the existence of the annotation.
According to Documentation, there's a flag for stoping on first failing test (not used).
Note
When testCase annotation is added, tests work properly.