toBeExistingDirectory(); }); test('failures', function () { expect('/random/path/whatever')->toBeExistingDirectory(); })->throws(ExpectationFailedException::class); test('not failures', function () { expect('.')->not->toBeExistingDirectory(); })->throws(ExpectationFailedException::class);