This commit is contained in:
Fabio Ivona
2022-08-25 09:32:48 +02:00
parent 66f69617f1
commit bedf033655
11 changed files with 29 additions and 2 deletions

View File

@ -40,8 +40,10 @@ test('fails if the number of iterable items is greater than the number of expect
test('it works with associative arrays', function () {
expect(['foo' => 'bar', 'baz' => 'boom'])
->sequence(
function ($expectation, $key) { $expectation->toEqual('bar'); $key->toEqual('foo'); },
function ($expectation, $key) { $expectation->toEqual('boom'); $key->toEqual('baz'); },
function ($expectation, $key) { $expectation->toEqual('bar');
$key->toEqual('foo'); },
function ($expectation, $key) { $expectation->toEqual('boom');
$key->toEqual('baz'); },
);
});

View File

@ -5,6 +5,7 @@ declare(strict_types=1);
namespace Tests\CustomTestCase;
use function PHPUnit\Framework\assertTrue;
use PHPUnit\Framework\TestCase;
class CustomTestCase extends TestCase

View File

@ -5,6 +5,7 @@ declare(strict_types=1);
namespace Tests\CustomTestCase;
use function PHPUnit\Framework\assertTrue;
use PHPUnit\Framework\TestCase;
class ExecutedTest extends TestCase

View File

@ -1,7 +1,9 @@
<?php
use Pest\Plugins\Version;
use function Pest\version;
use Symfony\Component\Console\Output\BufferedOutput;
it('outputs the version when --version is used', function () {