[ ['label' => 'button-A'], ['label' => 'button-B', 'visible' => true], ['label' => 'button-C', 'visible' => false], Button::widget(['label' => 'button-D']), ], ]); $expected = <<button-A button-B button-D HTML; $this->assertEqualsWithoutLE($expected, $out); } }