// Copyright 2017 Alexander Palaistras. All rights reserved. // Use of this source code is governed by the MIT license that can be found in // the LICENSE file. package php import ( "bytes" "fmt" "net/http" "reflect" "strings" "testing" ) func TestContextStart(t *testing.T) { e, _ = New() t.SkipNow() } func TestContextNew(t *testing.T) { c, err := e.NewContext() if err != nil { t.Fatalf("NewContext(): %s", err) } if c.context == nil || c.Header == nil || c.values == nil { t.Fatalf("NewContext(): Struct fields are `nil` but no error returned") } c.Destroy() } var execTests = []struct { name string script string expected string }{ { "helloworld.php", `