Beispiel #1
0
 function testEnsureValid()
 {
     $ctx = new Context();
     $ctx->addReason(null, ['id' => 'nope']);
     $this->setExpectedException(\Fulfil\ValidationException::class, "Failed validation:\n - nope");
     $ctx->ensureValid();
 }