Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Sep 20, 2024
1 parent 83ce9ed commit f826780
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions tests/Concerns/HandlesAssertionsTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

namespace Orchestra\Testbench\Tests\Concerns;

use Orchestra\Testbench\Concerns\HandlesAssertions;
use PHPUnit\Framework\TestCase;

class HandlesAssertionsTest extends TestCase
{
use HandlesAssertions;

/** @test */
public function it_should_mark_the_tests_as_skipped()
{
$this->markTestSkippedWhen(true, 'Successfully skipped current test');

$this->assertTrue(false, 'Test incorrectly executed.');
}

/** @test */
public function it_should_mark_the_tests_as_skipped_when_condition_()
{
$this->markTestSkippedWhen(function () {
return false;
}, 'Failed skipped current test');

$this->assertTrue(true, 'Test is correctly executed.');
}
}

0 comments on commit f826780

Please sign in to comment.