public function testWeCanAddAttributesToThePanels() { $accordion = Accordion::create('test') ->withContents( array( array( 'First', 'Contents of first', $this->testAttributes ), array( 'Second', 'Contents of second' ) ) ); $matcher = $this->getMatcher(); $matcher['child']['attributes'] = array( 'class' => 'panel panel-default foo', 'data-foo' => 'bar' ); $this->assertHtml($matcher, $accordion); }