mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
tests: adds collision tests
This commit is contained in:
@ -1,7 +1,11 @@
|
||||
WARN Tests\Fixtures\CollisionTest
|
||||
- error
|
||||
- success
|
||||
|
||||
PASS Tests\Fixtures\DirectoryWithTests\ExampleTest
|
||||
✓ it example 1
|
||||
|
||||
PASS Tests\Fixtures\ExampleTest
|
||||
✓ it example 2
|
||||
|
||||
Tests: 2 passed (2 assertions)
|
||||
Tests: 2 skipped, 2 passed (2 assertions)
|
||||
|
||||
23
tests/.snapshots/collision-parallel.txt
Normal file
23
tests/.snapshots/collision-parallel.txt
Normal file
@ -0,0 +1,23 @@
|
||||
|
||||
⨯.
|
||||
────────────────────────────────────────────────────────────────────────────
|
||||
FAILED Tests\Fixtures\CollisionTest > success Exception
|
||||
error
|
||||
|
||||
at tests/Fixtures/CollisionTest.php:4
|
||||
1▕ <?php
|
||||
2▕
|
||||
3▕ test('error', function () {
|
||||
➜ 4▕ throw new Exception('error');
|
||||
5▕ })->skip(! isset($_SERVER['COLLISION_TEST']));
|
||||
6▕
|
||||
7▕ test('success', function () {
|
||||
8▕ expect(true)->toBeTrue();
|
||||
9▕ })->skip(! isset($_SERVER['COLLISION_TEST']));
|
||||
|
||||
1 tests/Fixtures/CollisionTest.php:4
|
||||
2 src/Factories/TestCaseMethodFactory.php:100
|
||||
|
||||
|
||||
Tests: 1 failed, 1 passed (1 assertions)
|
||||
Duration: 0.16s
|
||||
22
tests/.snapshots/collision.txt
Normal file
22
tests/.snapshots/collision.txt
Normal file
@ -0,0 +1,22 @@
|
||||
|
||||
FAIL Tests\Fixtures\CollisionTest
|
||||
⨯ error
|
||||
✓ success
|
||||
────────────────────────────────────────────────────────────────────────────
|
||||
FAILED Tests\Fixtures\CollisionTest > error Exception
|
||||
error
|
||||
|
||||
at tests/Fixtures/CollisionTest.php:4
|
||||
1▕ <?php
|
||||
2▕
|
||||
3▕ test('error', function () {
|
||||
➜ 4▕ throw new Exception('error');
|
||||
5▕ })->skip(! isset($_SERVER['COLLISION_TEST']));
|
||||
6▕
|
||||
7▕ test('success', function () {
|
||||
8▕ expect(true)->toBeTrue();
|
||||
9▕ })->skip(! isset($_SERVER['COLLISION_TEST']));
|
||||
|
||||
1 tests/Fixtures/CollisionTest.php:4
|
||||
2 src/Factories/TestCaseMethodFactory.php:100
|
||||
|
||||
@ -779,6 +779,10 @@
|
||||
! warning → Undefined property: P\Tests\Features\Warnings::$fooqwdfwqdfqw
|
||||
! user warning → This is a warning description
|
||||
|
||||
WARN Tests\Fixtures\CollisionTest
|
||||
- error
|
||||
- success
|
||||
|
||||
PASS Tests\Fixtures\DirectoryWithTests\ExampleTest
|
||||
✓ it example 1
|
||||
|
||||
@ -969,6 +973,10 @@
|
||||
PASS Tests\Visual\BeforeEachTestName
|
||||
✓ latest description
|
||||
|
||||
PASS Tests\Visual\Collision
|
||||
✓ collision with ([''])
|
||||
✓ collision with (['--parallel'])
|
||||
|
||||
PASS Tests\Visual\Help
|
||||
✓ visual snapshot of help command output
|
||||
|
||||
@ -994,4 +1002,4 @@
|
||||
PASS Tests\Visual\Version
|
||||
✓ visual snapshot of help command output
|
||||
|
||||
Tests: 2 deprecated, 3 warnings, 4 incomplete, 1 notice, 4 todos, 12 skipped, 699 passed (1696 assertions)
|
||||
Tests: 2 deprecated, 3 warnings, 4 incomplete, 1 notice, 4 todos, 14 skipped, 701 passed (1698 assertions)
|
||||
Reference in New Issue
Block a user