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

Function TestParseAndPrintComplexString4

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

Source from the content-addressed store, hash-verified

1545}
1546
1547func TestParseAndPrintComplexString4(t *testing.T) {
1548 src := `<?php
1549 "test {$foo }" ;
1550 "test {$foo [ ] }" ;
1551 "test {$foo [ 1 ] }" ;
1552 "test {$foo -> bar }" ;
1553 "test {$foo -> bar ( ) }" ;
1554 `
1555
1556 actual := print(parse(src))
1557
1558 if src != actual {
1559 t.Errorf("\nexpected: %s\ngot: %s\n", src, actual)
1560 }
1561}

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…