/** * @expectedException \Zend\CodeGenerator\PHP\Exception */ public function testOtherTypesThrowExceptionOnGenerate() { $codeGenProperty = new PHP\PHPProperty(array('name' => 'someVal', 'defaultValue' => new \stdClass())); $codeGenProperty->generate(); }
/** * @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')); }