Skip to content

Commit

Permalink
execute CS fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
alquerci committed Apr 10, 2024
1 parent 4523808 commit 54a52f8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@
$test = new lime_test();

throw new LogicException('some exception message');

$test->is(true, true);
11 changes: 8 additions & 3 deletions test/unit/vendor/lime/lime_harnessTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
require_once __DIR__.'/tools/TestCase.php';
require_once __DIR__.'/tools/lime_no_colorizer.php';

/**
* @internal
*
* @coversNothing
*/
class lime_harnessTest extends TestCase
{
private function makeHarness(): lime_harness
Expand Down Expand Up @@ -38,7 +43,7 @@ public function testOnlyOneTestFile(): void
$harness = $this->makeHarness();

$harness->register([
__DIR__."/fixtures/$name.php",
__DIR__."/fixtures/{$name}.php",
]);

$this->assertHarnessWithOverallSucceedAndOutput($harness, $expectedOverallSucceed, $expectedOutput);
Expand Down Expand Up @@ -202,11 +207,11 @@ private function provideOnlyOneTestFile(): iterable
];
}

public function test_registerFilesWithGlob_thenRunThemAll(): void
public function testRegisterFilesWithGlobThenRunThemAll(): void
{
$harness = $this->makeHarness();

$harness->register_glob(__DIR__."/fixtures/*.php");
$harness->register_glob(__DIR__.'/fixtures/*.php');

$this->assertHarnessWithOverallSucceedAndOutput($harness, false, <<<'EOF'
test/unit/vendor/lime/fixtures/failed................................not ok
Expand Down
5 changes: 5 additions & 0 deletions test/unit/vendor/lime/lime_testTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
require_once __DIR__.'/../../../bootstrap/unit.php';
require_once __DIR__.'/tools/TestCase.php';

/**
* @internal
*
* @coversNothing
*/
class lime_testTest extends TestCase
{
private function whenExecutePhpFileWillHaveStatusCodeAndOutput($name, $expectedStatusCode, $expectedOutput)
Expand Down
2 changes: 1 addition & 1 deletion test/unit/vendor/lime/tools/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function run(): void
foreach ($this->findAllTests() as $methodName) {
$this->test->diag($methodName);

$this->$methodName();
$this->{$methodName}();
}
}

Expand Down

0 comments on commit 54a52f8

Please sign in to comment.