/** * @param PropertyContainer */ protected function getClassProperties(PropertyContainer $properties) { if ($this->getModel()->getAttributes()->count() > 0) { foreach ($this->getModelAttributes() as $attribute) { $properties->add(new PhpProperty($attribute->getCleanName(), PhpProperty::NO_VALUE)); } } }
/** * @expectedException \InvalidArgumentException */ public function testAddWithException() { $property = new Property(self::getBingGeneratorInstance()); $property->add(new PhpConstant('Bar')); }