feat(expect): add more methods

This commit is contained in:
ceceppa
2020-07-13 17:57:18 +01:00
parent b4c45af785
commit d29c789788
2 changed files with 19 additions and 12 deletions

View File

@ -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)
{ {

View File

@ -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