/** * Test related method */ public function testGetAttributes() { $attributes = array($this->getAttributeMock(), $this->getAttributeMock(), $this->getAttributeMock()); foreach ($attributes as $attribute) { $this->product->addValue($this->getValueMock($attribute)); } $this->assertEquals($attributes, $this->product->getAttributes()); }
/** * {@inheritDoc} */ public function getAttributes() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getAttributes', array()); return parent::getAttributes(); }