mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
feat(expect): add more methods
This commit is contained in:
@ -273,6 +273,8 @@ final class Expectation
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Dynamically calls methods on the class without any arguments.
|
* Dynamically calls methods on the class without any arguments.
|
||||||
|
*
|
||||||
|
* @return Expectation
|
||||||
*/
|
*/
|
||||||
public function __get(string $name)
|
public function __get(string $name)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -5,21 +5,16 @@
|
|||||||
PASS Tests\Expect\ToBe
|
PASS Tests\Expect\ToBe
|
||||||
✓ strict comparisons
|
✓ strict comparisons
|
||||||
✓ failures
|
✓ failures
|
||||||
✓ not failures
|
|
||||||
|
|
||||||
PASS Tests\Expect\thatDirectoryExists
|
|
||||||
✓ pass
|
|
||||||
✓ failures
|
|
||||||
✓ not failures
|
|
||||||
|
|
||||||
PASS Tests\Expect\thatDirectoryIsReadable
|
|
||||||
✓ pass
|
|
||||||
✓ failures
|
|
||||||
✓ not failures
|
✓ not failures
|
||||||
|
|
||||||
PASS Tests\Expect\toBeEmpty
|
PASS Tests\Expect\toBeEmpty
|
||||||
✓ pass
|
✓ pass
|
||||||
✓ failures
|
✓ failures
|
||||||
|
✓ not failures
|
||||||
|
|
||||||
|
PASS Tests\Expect\toBeExistingDirectory
|
||||||
|
✓ pass
|
||||||
|
✓ failures
|
||||||
✓ not failures
|
✓ not failures
|
||||||
|
|
||||||
PASS Tests\Expect\toBeFalse
|
PASS Tests\Expect\toBeFalse
|
||||||
@ -45,6 +40,16 @@
|
|||||||
PASS Tests\Expect\toBeLessThanOrEqual
|
PASS Tests\Expect\toBeLessThanOrEqual
|
||||||
✓ passes
|
✓ passes
|
||||||
✓ failures
|
✓ failures
|
||||||
|
✓ not failures
|
||||||
|
|
||||||
|
PASS Tests\Expect\toBeReadableDirectory
|
||||||
|
✓ pass
|
||||||
|
✓ failures
|
||||||
|
✓ not failures
|
||||||
|
|
||||||
|
PASS Tests\Expect\toBeWritableDirectory
|
||||||
|
✓ pass
|
||||||
|
✓ failures
|
||||||
✓ not failures
|
✓ not failures
|
||||||
|
|
||||||
PASS Tests\Expect\toContain
|
PASS Tests\Expect\toContain
|
||||||
@ -262,5 +267,5 @@
|
|||||||
WARN Tests\Visual\Success
|
WARN Tests\Visual\Success
|
||||||
- visual snapshot of test suite on success
|
- visual snapshot of test suite on success
|
||||||
|
|
||||||
Tests: 6 skipped, 153 passed
|
Tests: 6 skipped, 156 passed
|
||||||
Time: 4.35s
|
Time: 4.42s
|
||||||
|
|||||||
Reference in New Issue
Block a user