Skip to content

Testing: bin/serve.php HTTP integration tests (curl PHPT) #151

Description

@PurHur

Problem

make web-smoke only runs VM CLI. No automated test that bin/serve.php speaks HTTP.

Goal

PHPT or PHPUnit test that starts serve on ephemeral port, curls example, asserts body/status.

Tasks

  • test/integration/serve_simple_web.phpt or PHPUnit with proc_open
  • Assert Content-Type: text/html and Hello in body
  • CI: optional job (skip if port bind fails in sandbox)

Acceptance

./script/ci-local.sh includes serve integration when not skipped.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions