TestGenerator
class TestGenerator (View source)
Used for test generation.
Methods
static array
generate(string $query, string $type = 'parser')
Generates a test's data.
static void
build(string $type, string $input, string $output, string|null $debug = null, bool $ansi = false)
Builds a test.
static void
buildAll(string $input, string $output, mixed $debug = null)
Generates recursively all tests preserving the directory structure.
Details
static array
generate(string $query, string $type = 'parser')
Generates a test's data.
static void
build(string $type, string $input, string $output, string|null $debug = null, bool $ansi = false)
Builds a test.
Reads the input file, generates the data and writes it back.
static void
buildAll(string $input, string $output, mixed $debug = null)
Generates recursively all tests preserving the directory structure.