19 declare(strict_types=1);
    33         $vc1 = 
$f->nullControl();
    34         $vc2 = 
$f->pagination();
    35         $group = 
$f->group([$vc1, $vc2]);
    37         $this->assertEquals([$vc1, $vc2], $group->getInputs());
    43         $input = $this->createMock(InputData::class);
    52                     'a' => 
new Order(
'field1', 
'ASC'),
    53                     'b' => 
new Order(
'field2', 
'ASC')]
    60         $this->assertInstanceOf(
Result\Ok::class, $group->getContent());
    61         $this->assertCount(3, $group->getContent()->value());
    62         list(
$a, 
$b, 
$c) = $group->getContent()->value();
    63         $this->assertNull(
$a);
    64         $this->assertInstanceOf(Range::class, 
$b);
    65         $this->assertInstanceOf(Order::class, 
$c);
    75                     ->withLimitOptions([2, 5, 10])
    79                     'a' => 
new Order(
'field1', 
'ASC'),
    80                     'b' => 
new Order(
'field2', 
'ASC')
    83                 $f->fieldSelection([
'A', 
'B'])
    88         $html = $this->brutallyTrimHTML($this->getDefaultRenderer()->render($group));
    89         $this->assertStringContainsString(
'il-viewcontrol il-viewcontrol-pagination', $html);
    90         $this->assertStringContainsString(
'il-viewcontrol il-viewcontrol-sortation', $html);
    91         $this->assertStringContainsString(
'il-viewcontrol il-viewcontrol-fieldselection', $html);
 
testViewControlGroupRendering()
 
testViewControlGroupGetContent()
 
Both the subject and the direction need to be specified when expressing an order. ...
 
testViewControlGroupCreation()
 
$a
thx to https://mlocati.github.io/php-cs-fixer-configurator for the examples