Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7474688
NamesTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
679 B
Referenced Files
None
Subscribers
None
NamesTest.php
View Options
<?php
use
Eris\Generator
;
use
Eris\Generators
;
class
NamesTest
extends
\PHPUnit\Framework\TestCase
{
use
Eris\TestTrait
;
public
function
testGeneratingNames
()
{
$this
->
forAll
(
Generators
::
names
()
)->
then
(
function
(
$name
)
{
\Eris\PHPUnitDeprecationHelper
::
assertIsString
(
$name
);
var_dump
(
$name
);
});
}
public
function
testSamplingShrinkingOfNames
()
{
$generator
=
Generator\NamesGenerator
::
defaultDataSet
();
$sample
=
$this
->
sampleShrink
(
$generator
);
\Eris\PHPUnitDeprecationHelper
::
assertIsArray
(
$sample
->
collected
());
var_dump
(
$sample
->
collected
());
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Nov 23, 09:32 (4 d, 11 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
4e/74/9c4d5c54564326f635f6a9e0f767
Default Alt Text
NamesTest.php (679 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment