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,9 +1,11 @@
|
||||
<?php
|
||||
|
||||
test('error', function () {
|
||||
declare(strict_types=1);
|
||||
|
||||
test('error', function (): void {
|
||||
throw new Exception('error');
|
||||
})->skip(! isset($_SERVER['COLLISION_TEST']));
|
||||
|
||||
test('success', function () {
|
||||
test('success', function (): void {
|
||||
expect(true)->toBeTrue();
|
||||
})->skip(! isset($_SERVER['COLLISION_TEST']));
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Tests\Fixtures\Covers;
|
||||
|
||||
class CoversClass1
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Tests\Fixtures\Covers;
|
||||
|
||||
class CoversClass2 {}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Tests\Fixtures\Covers;
|
||||
|
||||
class CoversClass3 {}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Tests\Fixtures\Covers;
|
||||
|
||||
trait CoversTrait {}
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Tests\Fixtures\Inheritance\Base;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class ExampleTest extends TestCase
|
||||
{
|
||||
public function test_example()
|
||||
public function test_example(): void
|
||||
{
|
||||
$this->markTestSkipped();
|
||||
}
|
||||
|
||||
@@ -1,12 +1,15 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Tests\Fixtures\Inheritance;
|
||||
|
||||
class ExampleTest extends Base\ExampleTest
|
||||
{
|
||||
protected $foo;
|
||||
|
||||
public function test_example()
|
||||
#[\Override]
|
||||
public function test_example(): void
|
||||
{
|
||||
$this->assertTrue(true);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
dataset('nested.users', [
|
||||
['alice'],
|
||||
['bob'],
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
test('loads nested dataset', function (string $name) {
|
||||
declare(strict_types=1);
|
||||
|
||||
test('loads nested dataset', function (string $name): void {
|
||||
expect($name)->not->toBeEmpty();
|
||||
})->with('nested.users');
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
<?php
|
||||
|
||||
test('output', function () {
|
||||
declare(strict_types=1);
|
||||
|
||||
test('output', function (): void {
|
||||
echo 'this is unexpected output';
|
||||
|
||||
expect(true)->toBeTrue();
|
||||
|
||||
Reference in New Issue
Block a user