功能测试作为用户故事

功能测试最好描述为用户故事的测试。如果你在通常遵循以下模式之前处理过用户故事:

As a [role], I want to [desire], so that [benefit/desired outcome]

对于以下示例,我们将使用此用户故事作为示例:

As a Dungeon Master, I want to ensure harmony and mutual trust, so that
the party can work together as a team

在 PHP 功能测试的两种最流行的测试框架是贝哈特PHPSpec