phpunit

package
v0.7.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2022 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatResult

func FormatResult(w io.Writer, conf *FormatConfig, result *RunResult)

Types

type FormatConfig

type FormatConfig struct {
	PrintTime     bool
	ShortLocation bool
}

type RunConfig

type RunConfig struct {
	ProjectRoot  string
	ComposerRoot string
	TestTarget   string
	TestArgv     []string
	SrcDir       string

	KphpCommand string

	Output     io.Writer
	DebugPrint func(string)

	NoCleanup bool
}

type RunResult

type RunResult struct {
	Tests      int
	Assertions int
	Failures   []TestFailure
	Time       time.Duration
}

func Run

func Run(conf *RunConfig) (*RunResult, error)

type TestFailure

type TestFailure struct {
	Name    string
	Reason  string
	Message string
	File    string
	Line    int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL