class TestCase extends TestCase

internal  
 

Traits

Provides assertion helpers for test cases.

Methods

void
markTestSkippedUnless(bool|Closure|null $condition, string $message)

Mark the test as skipped when condition is not equivalent to true.

void
markTestSkippedWhen(bool|Closure|null $condition, string $message)

Mark the test as skipped when condition is equivalent to true.

void
tearDownTheTestEnvironmentUsingMockery()

Tear down the testing environment using Mockery.

void
tearDown()

Tear down the testing environment.

transformException(Throwable $error)

Transform an exception into a throwable for PHPUnit.

Details

in HandlesAssertions at line 19
protected void markTestSkippedUnless(bool|Closure|null $condition, string $message)

Mark the test as skipped when condition is not equivalent to true.

Parameters

bool|Closure|null $condition
string $message

Return Value

void

in HandlesAssertions at line 32
protected void markTestSkippedWhen(bool|Closure|null $condition, string $message)

Mark the test as skipped when condition is equivalent to true.

Parameters

bool|Closure|null $condition
string $message

Return Value

void

protected void tearDownTheTestEnvironmentUsingMockery()

Tear down the testing environment using Mockery.

Return Value

void

at line 24
protected void tearDown()

Tear down the testing environment.

Return Value

void

at line 33
protected Throwable transformException(Throwable $error)

Transform an exception into a throwable for PHPUnit.

Parameters

Throwable $error

Return Value

Throwable