schema() public method

public schema ( $field = null )
Beispiel #1
0
 public function testSchemaAccess()
 {
     $fields = array('foo' => array('type' => 'string'));
     $schema = new Schema(compact('fields'));
     $entity = new Entity(compact('schema'));
     $this->assertEqual($schema, $entity->schema());
 }