mirror of
https://github.com/pestphp/pest.git
synced 2026-07-24 10:30:03 +02:00
fix: package lock fingerprint
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
||||
|
||||
class CustomTestCaseInSubFolder extends TestCase
|
||||
{
|
||||
public function assertCustomInSubFolderTrue()
|
||||
public function assertCustomInSubFolderTrue(): void
|
||||
{
|
||||
$this->assertTrue(true);
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
|
||||
test('closure was bound to CustomTestCase', function () {
|
||||
test('closure was bound to CustomTestCase', function (): void {
|
||||
$this->assertCustomInSubFolderTrue();
|
||||
});
|
||||
|
||||
@@ -4,7 +4,7 @@ use PHPUnit\Framework\TestCase;
|
||||
|
||||
trait MyCustomTrait
|
||||
{
|
||||
public function assertFalseIsFalse()
|
||||
public function assertFalseIsFalse(): void
|
||||
{
|
||||
assertFalse(false);
|
||||
}
|
||||
@@ -12,7 +12,7 @@ trait MyCustomTrait
|
||||
|
||||
abstract class MyCustomClass extends TestCase
|
||||
{
|
||||
public function assertTrueIsTrue()
|
||||
public function assertTrueIsTrue(): void
|
||||
{
|
||||
$this->assertTrue(true);
|
||||
}
|
||||
@@ -20,7 +20,7 @@ abstract class MyCustomClass extends TestCase
|
||||
|
||||
pest()->extend(MyCustomClass::class)->use(MyCustomTrait::class);
|
||||
|
||||
test('custom traits can be used', function () {
|
||||
test('custom traits can be used', function (): void {
|
||||
$this->assertTrueIsTrue();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user