class VitestTestBuilder implements TestBuilderInterface

Utility class that supports ability to create new tests for Vitest based tests.

Methods

static int
makeTest(string $testName, InputInterface $input)

Creates a new test class. Three types of test can be generated based on flag

Details

at line 26
static int makeTest(string $testName, InputInterface $input)

Creates a new test class. Three types of test can be generated based on flag

  1. --component - Creates component test
  2. --unit - Creates unit test
  3. --view - Creates view test

Parameters

string $testName

The name for the test.

InputInterface $input

The Symfony InputInterface object.

Return Value

int

A value that indicates success, invalid, or failure.