Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12945481
ArrayUtilitiesTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
562 B
Referenced Files
None
Subscribers
None
ArrayUtilitiesTest.php
View Options
<?php
namespace
Keruald\OmniTools\Tests\Collections
;
use
Keruald\OmniTools\Collections\ArrayUtilities
;
use
PHPUnit\Framework\TestCase
;
class
ArrayUtilitiesTest
extends
TestCase
{
/**
* @dataProvider provideIntegersArray
*/
public
function
testToIntegers
(
$expected
,
$toConvert
)
{
$this
->
assertEquals
(
$expected
,
ArrayUtilities
::
toIntegers
(
$toConvert
));
}
public
function
provideIntegersArray
()
:
iterable
{
yield
[[
1
,
2
,
3
],
[
"1"
,
"2"
,
"3"
]];
yield
[[
1
,
2
,
3
],
[
1
,
2
,
3
]];
yield
[[],
[]];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Nov 18, 17:41 (22 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3115843
Default Alt Text
ArrayUtilitiesTest.php (562 B)
Attached To
Mode
rKERUALD Keruald libraries development repository
Attached
Detach File
Event Timeline
Log In to Comment