Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[READ ONLY] Subtree split of the snicco/better-wp-cli-testing package (see snicco/snicco).

License

snicco/better-wp-cli-testing

Repository files navigation

Testing utils for snicco/better-wp-cli

This package provides a CommandTester class that allows testing CLI-commands created with snicco/better-wp-cli without having to run the entire wp runner from end-to-end.

Installation

composer require snicco/better-wp-cli-testing

Usage

use Snicco\Component\BetterWPCLI\Testing\CommandTester;

$tester = new CommandTester(new CreateUserCommand());

$tester->run(['calvin', '[email protected]'], ['send-email' => true]);

$tester->assertCommandIsSuccessful();

$tester->assertStatusCode(0);

$tester->seeInStdout('User created!');

$tester->dontSeeInStderr('Fail');

Contributing

This repository is a read-only split of the development repo of the Snicco project.

This is how you can contribute.

Reporting issues and sending pull requests

Please report issues in the Snicco monorepo.

Security

If you discover a security vulnerability, please follow our disclosure procedure.

About

[READ ONLY] Subtree split of the snicco/better-wp-cli-testing package (see snicco/snicco).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages