PHP Class Mmoreram\PHPFormatter\Tests\Sorter\UseSorterTest

Inheritance: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Show file Open project: mmoreram/php-formatter

Protected Properties

Property Type Description
$data string Data
$useSorter Mmoreram\PHPFormatter\Sorter\UseSorter Use sorter

Public Methods

Method Description
dataSort ( ) : array Data for testSort.
setUp ( ) Setup.
testGroupSkip ( ) Test skip empty.
testGroupSkipWithMissingGroups ( ) Test skip empty where consecutive empty groups are between used groups.
testSort ( $groups, $sortType, $sortDirection, $groupType, $result ) Test sort.

Method Details

dataSort() public method

Data for testSort.
public dataSort ( ) : array
return array Data

setUp() public method

Setup.
public setUp ( )

testGroupSkip() public method

Test skip empty.
public testGroupSkip ( )

testGroupSkipWithMissingGroups() public method

Test skip empty where consecutive empty groups are between used groups.
See also: https://github.com/mmoreram/php-formatter/issues/24

testSort() public method

Test sort.
public testSort ( $groups, $sortType, $sortDirection, $groupType, $result )

Property Details

$data protected property

Data
protected string $data
return string

$useSorter protected property

Use sorter
protected UseSorter,Mmoreram\PHPFormatter\Sorter $useSorter
return Mmoreram\PHPFormatter\Sorter\UseSorter