/** * Test for JGrid::renderAttributes method. * * @return void */ public function testRenderAttributes() { $table = new JGridInspector; $this->assertThat( $table->renderAttributes(array('class' => 'test1')), $this->equalTo(' class="test1"') ); $this->assertThat( $table->renderAttributes(array('class' => 'test1', 'ref' => 'test5')), $this->equalTo(' class="test1" ref="test5"') ); }