Esempio n. 1
0
 public function test__call()
 {
     $data = array('type' => 'int');
     $name = 'somename';
     $dataType = new DataType($name, null, null, $data);
     $this->assertSame($dataType->getType(), $data['type']);
     $this->assertSame($dataType->isPrimaryKey(), false);
     $this->assertSame($dataType->isUnique(), false);
     $this->assertSame($dataType->isNullable(), false);
     $this->assertSame($dataType->isArray(), false);
     $this->assertSame($dataType->isFormChoiceText(), false);
     $this->assertSame($dataType->getLength(), null);
     $this->assertSame($dataType->getDefault(), null);
     $this->assertSame($dataType->getNotARealProperty(), null);
     $this->setExpectedException("Bond\\Exception\\BadPropertyException");
     $dataType->notAValidMethodCall();
 }