MCPcopy Create free account
hub / github.com/z7zmey/php-parser / TestParseAndPrintShellExec

Function TestParseAndPrintShellExec

printer/printer_parsed_php7_test.go:724–732  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

722}
723
724func TestParseAndPrintShellExec(t *testing.T) {
725 src := "<?php ` {$v} cmd ` ; "
726
727 actual := print(parse(src))
728
729 if src != actual {
730 t.Errorf("\nexpected: %s\ngot: %s\n", src, actual)
731 }
732}
733
734func TestParseAndPrintShortArray(t *testing.T) {
735 src := `<?php

Callers

nothing calls this directly

Calls 2

printFunction · 0.85
parseFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…