示例#1
0
 protected function setUp()
 {
     $this->obj = new Strict();
     $this->stringDefinition = new PropertyDefinition();
     $this->integerDefinition = new PropertyDefinition();
     $this->gookDefinition = new PropertyDefinition();
     $this->entityDefinition = new PropertyDefinition();
     $this->stringDefinition->setName('someProperty')->setRawType('string');
     $this->integerDefinition->setName('someIntegerProperty')->setRawType('integer');
     $this->gookDefinition->setName('someGookProperty')->setRawType('gook');
     $this->entityDefinition->setName('someEntityProperty')->setRawType('MortadellaEntity');
 }
示例#2
0
 protected function setUp()
 {
     $this->obj = new Named();
     $this->definition = new PropertyDefinition();
     $this->definition->setName('someProperty')->setRawType('string');
 }