Page MenuHomeWickedGov Phorge

DisableShrinkingTest.php
No OneTemporary

Size
649 B
Referenced Files
None
Subscribers
None

DisableShrinkingTest.php

<?php
use Eris\Generators;
use Eris\TestTrait;
class DisableShrinkingTest extends \PHPUnit\Framework\TestCase
{
use TestTrait;
/**
* @var int
*/
private $calls;
/**
* Shrinking may be avoided when then() is slow or non-deterministic.
*/
public function testThenIsNotCalledMultipleTime()
{
$this->calls = 0;
$this
->forAll(
Generators::nat()
)
->disableShrinking()
->then(function ($number) {
$this->calls++;
$this->assertTrue(false, "Total calls: {$this->calls}");
});
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Nov 21, 14:34 (3 h, 38 m ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
4a/f3/9961cdad88bca782f8be1a0b9458
Default Alt Text
DisableShrinkingTest.php (649 B)

Event Timeline