diff options
Diffstat (limited to 'plugins/server/command_test.go')
-rw-r--r-- | plugins/server/command_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/server/command_test.go b/plugins/server/command_test.go index d226ae9c..74762ccd 100644 --- a/plugins/server/command_test.go +++ b/plugins/server/command_test.go @@ -33,4 +33,11 @@ func TestServerCommandChecker(t *testing.T) { if !errors.Is(errors.FileNotFound, err) { t.Fatal("should be of filenotfound type") } + + cmd6 := "php 0/../../tests/cluent.php --option1 --option2" + err = s.scanCommand(strings.Split(cmd6, " ")) + assert.Error(t, err) + if errors.Is(errors.FileNotFound, err) { + t.Fatal("should be of filenotfound type") + } } |