Skip to content

Tests stop on first failing test when extending TestCase #469

Description

@khorsky

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.

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions