MCPcopy Index your code
hub / github.com/php/frankenphp / testStubBasicStructure

Function testStubBasicStructure

internal/extgen/stub_test.go:556–570  ·  view source on GitHub ↗
(t *testing.T, content string)

Source from the content-addressed store, hash-verified

554}
555
556func testStubBasicStructure(t *testing.T, content string) {
557 requiredElements := []string{
558 "<?php",
559 "/** @generate-class-entries */",
560 }
561
562 for _, element := range requiredElements {
563 assert.Contains(t, content, element, "Stub file should contain: %s", element)
564 }
565
566 lines := strings.Split(content, "\n")
567 if len(lines) > 0 {
568 assert.Equal(t, "<?php", strings.TrimSpace(lines[0]), "Stub file should start with <?php")
569 }
570}
571
572func testStubFunctions(t *testing.T, content string, functions []phpFunction) {
573 for _, fn := range functions {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected