tinie-test-functional

Automate Symfony functional tests for HTTP requests, DOM rendering, and services.

Updated Jun 7, 2025
One-click install
npx skills add https://github.com/ThomasLdev/tinie-bakerie --skill tinie-test-functional
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tinie-test-functional
Source: https://github.com/ThomasLdev/tinie-bakerie/tree/main/.claude/skills/tinie-test-functional
Command: npx skills add https://github.com/ThomasLdev/tinie-bakerie --skill tinie-test-functional

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires symfony/symfony, phpunit/phpunit, Zenstruck\Foundry, zenstruck/foundry-providers, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates functional testing in Symfony, reducing the need for manual testing and improving code quality and reliability.

Core Features & Use Cases

  • KernelTestCase and WebTestCase Support: Offers a choice between kernel-side and web-side testing.
  • Foundry and Story Driven: Uses Foundry for realistic database setup and Story for deterministic testing states.
  • DOM Assertions: Facilitates DOM-based assertions for testing rendered pages.
  • Use Case: Ideal for automating tests on controller actions, service integrations, and database queries.

Quick Start

Run the make test.functional command to execute functional tests in your Symfony application.

Frequently Asked Questions about tinie-test-functional

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

FAQPage Schema
How do I automate functional testing in Symfony for controller actions and service integrations?

Automate functional testing in Symfony by choosing KernelTestCase or WebTestCase to execute full HTTP requests, verify DOM rendering, and validate service interactions. Run the make test.functional command to generate and execute these tests.

How does Foundry story driven testing work for setting up database states in Symfony?

Foundry story driven testing uses factory stories to create deterministic database states for Symfony functional tests. It utilizes actual database connections to establish realistic data fixtures, ensuring reliable and repeatable test environments.

Do I need Zenstruck Foundry and PHPUnit to set up functional testing for Symfony?

Yes, you need PHPUnit as the test framework and Zenstruck Foundry for database fixture management. These dependencies are required to execute the full HTTP request lifecycle and manage realistic database setups without using mocks.

What is the difference between KernelTestCase and WebTestCase when testing Symfony applications?

KernelTestCase tests backend logic and service integrations within the Symfony kernel, while WebTestCase tests web-side functionality by executing full HTTP requests and performing DOM assertions on rendered pages.

Can I perform DOM assertions on rendered pages during Symfony functional testing?

Yes, WebTestCase facilitates DOM-based assertions on rendered pages during Symfony functional testing. This allows you to verify HTML output and DOM structure directly after executing full HTTP requests.

Why use real database connections instead of mocks for Symfony functional testing?

Using real database connections instead of mocks validates actual database queries and service integrations end to end. Combined with Foundry, this ensures your Symfony functional tests reflect realistic application behavior and true query execution.