diff options
Diffstat (limited to 'plugins/server/command_test.go')
-rw-r--r-- | plugins/server/command_test.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/server/command_test.go b/plugins/server/command_test.go new file mode 100644 index 00000000..24051fba --- /dev/null +++ b/plugins/server/command_test.go @@ -0,0 +1,14 @@ +package server + +import ( + "strings" + "testing" + + "github.com/stretchr/testify/assert" +) + +func TestServerCommandChecker(t *testing.T) { + s := &Plugin{} + cmd1 := "php ../../tests/client.php" + assert.NoError(t, s.scanCommand(strings.Split(cmd1, " "))) +} |