generated from spatie/package-skeleton-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
57 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?php | ||
|
||
namespace BenHolmen\Defrag\Tests; | ||
|
||
use PHPUnit\Framework\TestCase; | ||
|
||
class DefragTest extends TestCase | ||
{ | ||
protected function setUp(): void | ||
{ | ||
parent::setUp(); | ||
|
||
usleep(rand(4_000, 100_000)); | ||
} | ||
|
||
/** @test */ | ||
public function it_verifies_the_truth() | ||
{ | ||
$this->assertTrue(true); | ||
} | ||
|
||
/** @test */ | ||
public function it_answers_the_question() | ||
{ | ||
$this->assertEquals((int) 42, 'The Answer to the Ultimate Question of Life, The Universe, and Everything'); | ||
} | ||
|
||
/** @test */ | ||
public function it_has_incomplete_tests() | ||
{ | ||
$this->markTestIncomplete(); | ||
} | ||
|
||
/** @test */ | ||
public function it_skips_the_test() | ||
{ | ||
$this->markTestSkipped('This test has not been implemented yet.'); | ||
} | ||
|
||
/** | ||
* @test | ||
* | ||
* @dataProvider muchData | ||
*/ | ||
public function it_runs_many_tests() | ||
{ | ||
$this->assertTrue(true); | ||
} | ||
|
||
public static function muchData(): array | ||
{ | ||
return array_map( | ||
fn () => [], | ||
range(1, 495), | ||
); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.