mirror of
https://github.com/pestphp/pest.git
synced 2026-03-09 17:27:22 +01:00
feat: improves exporter
This commit is contained in:
@ -919,5 +919,4 @@
|
||||
PASS Tests\Visual\Version
|
||||
✓ visual snapshot of help command output
|
||||
|
||||
Tests: 4 incomplete, 4 todos, 18 skipped, 627 passed (1514 assertions)
|
||||
|
||||
Tests: 4 incomplete, 4 todos, 18 skipped, 636 passed (1556 assertions)
|
||||
@ -62,15 +62,15 @@ test('fails with wrong value and plain key with dots', function () use ($test_ar
|
||||
|
||||
test('not failures', function () use ($test_array) {
|
||||
expect($test_array)->not->toHaveKey('c');
|
||||
})->throws(ExpectationFailedException::class, "Expecting Array (...) not to have key 'c'");
|
||||
})->throws(ExpectationFailedException::class, "Expecting Array (…) not to have key 'c'");
|
||||
|
||||
test('not failures with nested key', function () use ($test_array) {
|
||||
expect($test_array)->not->toHaveKey('d.e');
|
||||
})->throws(ExpectationFailedException::class, "Expecting Array (...) not to have key 'd.e'");
|
||||
})->throws(ExpectationFailedException::class, "Expecting Array (…) not to have key 'd.e'");
|
||||
|
||||
test('not failures with plain key with dots', function () use ($test_array) {
|
||||
expect($test_array)->not->toHaveKey('key.with.dots');
|
||||
})->throws(ExpectationFailedException::class, "Expecting Array (...) not to have key 'key.with.dots'");
|
||||
})->throws(ExpectationFailedException::class, "Expecting Array (…) not to have key 'key.with.dots'");
|
||||
|
||||
test('not failures with correct value', function () use ($test_array) {
|
||||
expect($test_array)->not->toHaveKey('c', 'world');
|
||||
|
||||
@ -13,6 +13,6 @@ $run = function () {
|
||||
};
|
||||
|
||||
test('parallel', function () use ($run) {
|
||||
expect($run())->toContain('Running 650 tests using 3 processes')
|
||||
->toContain('Tests: 4 incomplete, 4 todos, 15 skipped, 627 passed (1546 assertions)');
|
||||
expect($run())->toContain('Running 652 tests using 3 processes')
|
||||
->toContain('Tests: 4 incomplete, 4 todos, 15 skipped, 629 passed (1548 assertions)');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user