PhpBench\Tests\Unit\Report\Generator\TableGeneratorTest::testSortDesc PHP Метод

testSortDesc() публичный Метод

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