assert icon indicating copy to clipboard operation
assert copied to clipboard

Separate file/directory/exists assertions

Open shadowhand opened this issue 2 years ago • 0 comments

There is no need to use file_exists before using is_file and is_dir, this makes for confusing errors. For instance, if you call Assert::directory('invalid/path') then the reported error will be:

The file "invalid/path" does not exist.

Additionally, the messages for these assertions were either technically or grammatically incorrect.

shadowhand avatar Sep 21 '23 19:09 shadowhand