diff --git a/test/unit/vendor/lime/fixtures/pass_with_one_throw_exception.php b/test/unit/vendor/lime/fixtures/pass_with_one_throw_exception.php index 98e61707e..826e345c1 100644 --- a/test/unit/vendor/lime/fixtures/pass_with_one_throw_exception.php +++ b/test/unit/vendor/lime/fixtures/pass_with_one_throw_exception.php @@ -5,5 +5,4 @@ $test = new lime_test(); throw new LogicException('some exception message'); - $test->is(true, true); diff --git a/test/unit/vendor/lime/lime_harnessTest.php b/test/unit/vendor/lime/lime_harnessTest.php index ba6429a43..162c23074 100644 --- a/test/unit/vendor/lime/lime_harnessTest.php +++ b/test/unit/vendor/lime/lime_harnessTest.php @@ -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 @@ -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); @@ -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 diff --git a/test/unit/vendor/lime/lime_testTest.php b/test/unit/vendor/lime/lime_testTest.php index 24dec6536..f14f8f4d0 100644 --- a/test/unit/vendor/lime/lime_testTest.php +++ b/test/unit/vendor/lime/lime_testTest.php @@ -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) diff --git a/test/unit/vendor/lime/tools/TestCase.php b/test/unit/vendor/lime/tools/TestCase.php index 933222ae3..fa262401f 100644 --- a/test/unit/vendor/lime/tools/TestCase.php +++ b/test/unit/vendor/lime/tools/TestCase.php @@ -14,7 +14,7 @@ public function run(): void foreach ($this->findAllTests() as $methodName) { $this->test->diag($methodName); - $this->$methodName(); + $this->{$methodName}(); } }