test

Guide writing and executing Yii2 tests with Codeception.

10|6|Updated Dec 2, 2025
One-click install
npx skills add https://github.com/WarLikeLaux/yii2-book-catalog --skill test-warlikelaux
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test
Source: https://github.com/WarLikeLaux/yii2-book-catalog/tree/main/.claude/skills/test
Command: npx skills add https://github.com/WarLikeLaux/yii2-book-catalog --skill test-warlikelaux

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides clear guidelines and conventions for writing effective tests in Yii2 projects using Codeception, ensuring code quality and maintainability.

Core Features & Use Cases

  • Test Type Guidance: Differentiates between Functional (Cest) and Unit tests.
  • Code Conventions: Enforces naming, structure, and strict typing for tests.
  • Execution Commands: Provides simple commands to run specific or all tests.
  • Use Case: A new developer joins the project and needs to understand how to write and run tests according to the established standards. This Skill acts as their primary guide.

Quick Start

Run all project tests using the make test command.

Frequently Asked Questions about test

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write functional and unit tests for Yii2 using Codeception?

To write tests for Yii2 using Codeception, you differentiate between Functional tests using Cest classes and Unit tests, enforcing strict typing, specific naming conventions, and structured code standards for robust application development.

What is the difference between functional and unit testing in Yii2 Codeception?

Functional testing in Yii2 Codeception focuses on testing application flows via Cest classes, whereas unit testing targets isolated components to ensure code quality, maintainability, and strict adherence to established testing standards.

How do I run all Codeception tests in a Yii2 project?

You can run all Codeception tests in a Yii2 project by executing the `make test` command, which provides a simple way to run specific or all project tests according to the established guidelines.

Do I need strict typing for Codeception tests in Yii2?

Yes, you need strict typing for Codeception tests in Yii2 to adhere to the enforced code conventions, which mandate specific naming, structure, and strict typing to maintain code quality and maintainability.

What are the Codeception naming conventions for Yii2 testing?

Codeception naming conventions for Yii2 testing enforce specific structures for Functional Cest and Unit tests, ensuring clear differentiation and adherence to strict testing standards to guide new developers in writing effective tests.

Why does my Yii2 Codeception test fail to meet project standards?

Your Yii2 Codeception test fails project standards if it lacks strict typing, uses incorrect naming conventions, or does not follow the structural guidelines differentiating Functional Cest tests from Unit tests.