gitlab-com-adeattwood-yii2-.../tests/unit/ArrayHelperCest.php
2017-06-22 23:09:28 +01:00

25 lines
468 B
PHP

<?php
use adeattwood\helpers\ArrayHelper;
class ArrayHelperCest
{
public function _before(UnitTester $I)
{
}
public function _after(UnitTester $I)
{
}
public function testNumberArray(UnitTester $I)
{
$array = ArrayHelper::numberArray( 11 );
$I->assertEquals( $array[ 0 ], 0 );
$I->assertEquals( $array[ 10 ], 10 );
$array = ArrayHelper::numberArray( 10, 2, 2 );
var_dump( $array );
}
}