diff --git a/tests/Unit/helpers/isPhp.php b/tests/Unit/helpers/isPhp.php new file mode 100644 index 0000000..78fc487 --- /dev/null +++ b/tests/Unit/helpers/isPhp.php @@ -0,0 +1,15 @@ +group('helpers'); + +it('returns true when is php file', function (): void { + expect(isPhp('file.php'))->toBeTrue(); +}); + +it('returns false when is not php file', function (): void { + expect(isPhp('file.js'))->toBeFalse(); +}); + +it('returns false when is dir', function (): void { + expect(isPhp('directory'))->toBeFalse(); +});