mirror of
https://github.com/pestphp/pest.git
synced 2026-07-24 02:20:03 +02:00
fix: package lock fingerprint
This commit is contained in:
@@ -4,7 +4,7 @@ use PHPUnit\Framework\TestCase;
|
||||
|
||||
class InheritanceTest extends TestCase
|
||||
{
|
||||
public function foo()
|
||||
public function foo(): string
|
||||
{
|
||||
return 'bar';
|
||||
}
|
||||
@@ -12,11 +12,11 @@ class InheritanceTest extends TestCase
|
||||
|
||||
pest()->extend(InheritanceTest::class);
|
||||
|
||||
it('is a test', function () {
|
||||
it('is a test', function (): void {
|
||||
expect(true)->toBeTrue();
|
||||
});
|
||||
|
||||
it('uses correct parent class', function () {
|
||||
expect(get_parent_class($this))->toEqual(InheritanceTest::class);
|
||||
expect($this->foo())->toEqual('bar');
|
||||
it('uses correct parent class', function (): void {
|
||||
expect(get_parent_class($this))->toEqual(InheritanceTest::class)
|
||||
->and($this->foo())->toEqual('bar');
|
||||
})->depends('it is a test');
|
||||
|
||||
Reference in New Issue
Block a user