Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6126343
ShrinkingTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
819 B
Referenced Files
None
Subscribers
None
ShrinkingTest.php
View Options
<?php
use
Eris\Generators
;
use
Eris\TestTrait
;
class
ShrinkingTest
extends
\PHPUnit\Framework\TestCase
{
use
TestTrait
;
public
function
testShrinkingAString
()
{
$this
->
forAll
(
Generators
::
string
()
)
->
then
(
function
(
$string
)
{
var_dump
(
$string
);
\Eris\PHPUnitDeprecationHelper
::
assertStringNotContainsString
(
'B'
,
$string
);
});
}
public
function
testShrinkingRespectsAntecedents
()
{
$this
->
forAll
(
Generators
::
choose
(
0
,
20
)
)
->
when
(
function
(
$number
)
{
return
$number
>
10
;
})
->
then
(
function
(
$number
)
{
$this
->
assertTrue
(
$number
%
29
==
0
,
"The number $number is not multiple of 29"
);
});
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Oct 7 2026, 09:25 (7 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
8c/b2/94e572721be0b046714b3359fe44
Default Alt Text
ShrinkingTest.php (819 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment