assert
assert copied to clipboard
Separate file/directory/exists assertions
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.