Testing DDD applications with Behat and in-memory adapters

Cover image for Testing DDD applications with Behat and in-memory adapters

A practical testing architecture for combining fast domain tests, executable Behat application specifications, in-memory ports, deterministic time, real Symfony boundaries, and focused infrastructure tests.

…

Related writing

July 23, 2026

Making system time an explicit dependency in Symfony

Why reading the system clock inside business logic creates nondeterministic behavior, and how an explicit Clock port makes expiry, validity, scheduling, persistence, and time-sensitive tests predictable.

Read

Need a software engineer?

Send the goal, stack, and timeline. I'll reply with a next step.

Work with me