Add test for basename function

This commit is contained in:
Guillaume Tassery 2019-04-29 17:18:02 +07:00
parent 95141804fb
commit 87b60f0a3b
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,5 @@
bash
bash
test_file
script.php

View File

@ -0,0 +1,5 @@
SELECT basename('/usr/bin/bash');
SELECT basename('/usr/bin/bash/');
SELECT basename('bash');
SELECT basename('C:\\\\Users\\Documents\\test_file');
SELECT basename(path('http://example.com/folder_1/folder_2/script.php'))