Page MenuHomeWickedGov Phorge

AlwaysFailsTest.php
No OneTemporary

Size
458 B
Referenced Files
None
Subscribers
None

AlwaysFailsTest.php

<?php
use Eris\Generators;
use Eris\TestTrait;
class AlwaysFailsTest extends \PHPUnit\Framework\TestCase
{
use TestTrait;
public function testFailsNoMatterWhatIsTheInput()
{
$this->forAll(
Generators::elements(['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'])
)
->then(function ($someChar) {
$this->fail("This test fails by design. '$someChar' was passed in");
});
}
}

File Metadata

Mime Type
text/x-php
Expires
Oct 7 2026, 07:01 (6 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
e9/ee/d47013931756883defc4eb4c1439
Default Alt Text
AlwaysFailsTest.php (458 B)

Event Timeline