class TestCase

Single test case.

Constants

internal ListMethods

internal MethodPattern

Methods

void
run()

Runs all test methods in this test case or a specific test method if provided.

void
runTest(string $method, array|null $args = null)

Executes a specified test method within this test case, handling data providers and errors.

getData(string $provider)

No description

void
setUp()

Setup logic to be executed before each test method. Override in subclasses for specific behaviors.

void
tearDown()

Teardown logic to be executed after each test method. Override in subclasses to release resources.

void
skip(string $message = '')

Skips the current test, optionally providing a reason for skipping.

Details

at line 32
void run()

Runs all test methods in this test case or a specific test method if provided.

Return Value

void

at line 75
void runTest(string $method, array|null $args = null)

Executes a specified test method within this test case, handling data providers and errors.

Parameters

string $method
array|null $args

arguments provided for the test method, bypassing data provider if provided.

Return Value

void

at line 155
protected getData(string $provider)

No description

Parameters

string $provider

at line 171
protected void setUp()

Setup logic to be executed before each test method. Override in subclasses for specific behaviors.

Return Value

void

at line 180
protected void tearDown()

Teardown logic to be executed after each test method. Override in subclasses to release resources.

Return Value

void

at line 203
protected void skip(string $message = '')

Skips the current test, optionally providing a reason for skipping.

Parameters

string $message

Return Value

void