Example #1
0
 public function testTranspose()
 {
     $table = new Table(['row1' => ['col1' => '1.1', 'col2' => '1.2', 'col3' => '1.3'], 'row2' => ['col1' => '2.1', 'col2' => '2.2', 'col3' => '2.3']], ['transpose' => true]);
     $this->assertEquals([['', 'row1', 'row2'], ['col1', '1.1', '2.1'], ['col2', '1.2', '2.2'], ['col3', '1.3', '2.3']], $table->getRawContent());
 }