Page MenuHomeWickedGov Phorge

ErrorTest.php
No OneTemporary

Size
413 B
Referenced Files
None
Subscribers
None

ErrorTest.php

<?php
use Eris\Generators;
class ErrorTest extends \PHPUnit\Framework\TestCase
{
use Eris\TestTrait;
public function testGenericExceptionsDoNotShrinkButStillShowTheInput()
{
$this->forAll(
Generators::string()
)
->then(function ($string) {
throw new RuntimeException("Something like a missing array index happened.");
});
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, Aug 18, 23:02 (1 d, 3 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
d6/f5/0e8b86823357bfe1752987630968
Default Alt Text
ErrorTest.php (413 B)

Event Timeline