PhpBench\Tests\Unit\Report\Generator\TableGeneratorTest::testSortAsc PHP Method

testSortAsc() public method

It should sort ASC.
public testSortAsc ( )
    public function testSortAsc()
    {
        $collection = TestUtil::createCollection([['benchmarks' => ['oneBench', 'twoBench'], 'subjects' => ['subjectOne', 'subjectTwo']]]);
        $report = $this->generate($collection, ['sort' => ['mean' => 'asc']]);
        $values = [];
        foreach ($report->query('//group[@name="body"]//cell[@name="mean"]') as $cellEl) {
            $values[] = $cellEl->nodeValue;
        }
        $this->assertEquals(['3', '3', '3.2', '3.2'], $values);
    }