mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 00:07:22 +01:00
Use Expectation API
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
✓ not property calls
|
✓ not property calls
|
||||||
|
|
||||||
PASS Tests\Expect\toBe
|
PASS Tests\Expect\toBe
|
||||||
✓ expect true → toBeTrue → and false → toBeFalse
|
✓ expect true → toBeTrue → and false → toBeFalse
|
||||||
✓ strict comparisons
|
✓ strict comparisons
|
||||||
✓ failures
|
✓ failures
|
||||||
✓ not failures
|
✓ not failures
|
||||||
@ -295,8 +295,8 @@
|
|||||||
✓ it has bar
|
✓ it has bar
|
||||||
|
|
||||||
PASS Tests\Features\PendingHigherOrderTests
|
PASS Tests\Features\PendingHigherOrderTests
|
||||||
✓ get 'foo' → get 'bar' → expect true → toBeTrue
|
✓ get 'foo' → get 'bar' → expect true → toBeTrue
|
||||||
✓ get 'foo' → expect true → toBeTrue
|
✓ get 'foo' → expect true → toBeTrue
|
||||||
|
|
||||||
WARN Tests\Features\Skip
|
WARN Tests\Features\Skip
|
||||||
✓ it do not skips
|
✓ it do not skips
|
||||||
@ -392,3 +392,4 @@
|
|||||||
✓ depends run test only once
|
✓ depends run test only once
|
||||||
|
|
||||||
Tests: 7 skipped, 231 passed
|
Tests: 7 skipped, 231 passed
|
||||||
|
|
||||||
@ -8,6 +8,6 @@ it('show the names of named datasets in their description', function () {
|
|||||||
'two' => [[2]],
|
'two' => [[2]],
|
||||||
]));
|
]));
|
||||||
|
|
||||||
$this->assertSame('test description with data set "one" (1)', $descriptions[0]);
|
expect($descriptions[0])->toBe('test description with data set "one" (1)');
|
||||||
$this->assertSame('test description with data set "two" (array(2))', $descriptions[1]);
|
expect($descriptions[1])->toBe('test description with data set "two" (array(2))');
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user