Example #1
0
 /**
  * @expectedException \Zend\CodeGenerator\PHP\Exception
  */
 public function testOtherTypesThrowExceptionOnGenerate()
 {
     $codeGenProperty = new PHP\PHPProperty(array('name' => 'someVal', 'defaultValue' => new \stdClass()));
     $codeGenProperty->generate();
 }
Example #2
0
 /**
  * @group ZF-7361
  */
 public function testHasProperty()
 {
     $property = new PHP\PHPProperty();
     $property->setName('propertyOne');
     $codeGenClass = new PHP\PHPClass();
     $codeGenClass->setProperty($property);
     $this->assertTrue($codeGenClass->hasProperty('propertyOne'));
 }