Example #1
0
 /**
  * Test defaults
  */
 public function testDefaults()
 {
     $table = new Table($this->data, $this->fields);
     $this->assertSame(array_keys($this->fields), $table->getFieldNames());
     $this->assertInstanceOf('ArrayIterator', $table->getInnerIterator());
     $this->assertSame(array(array('int' => 1, 'bool' => null, 'string' => '0'), array('int' => 2, 'bool' => true, 'string' => '0.1'), array('int' => 3, 'bool' => false, 'string' => '0"0')), iterator_to_array($table));
 }