Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7397359
DisableShrinkingTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
649 B
Referenced Files
None
Subscribers
None
DisableShrinkingTest.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment