faker->sha256(); $property = $this->getClassProperty($commonAnnotation, 'description'); $property->setValue($commonAnnotation, $value); self::assertEquals($value, $commonAnnotation->getDescription()); } /** * @throws ReflectionException */ public function testSetDescription(): void { $commonAnnotation = new Annotation(); $value = $this->faker->sha256(); self::assertEquals($commonAnnotation, $commonAnnotation->setDescription($value)); self::assertEquals( $value, ($this->getClassProperty($commonAnnotation, 'description')) ->getValue($commonAnnotation) ); } /** * @throws ReflectionException */ public function testGetSummary(): void { $commonAnnotation = new Annotation(); $value = $this->faker->sha256(); $property = $this->getClassProperty($commonAnnotation, 'summary'); $property->setValue($commonAnnotation, $value); self::assertEquals($value, $commonAnnotation->getSummary()); } /** * @throws ReflectionException */ public function testSetSummary(): void { $commonAnnotation = new Annotation(); $value = $this->faker->sha256(); self::assertEquals($commonAnnotation, $commonAnnotation->setSummary($value)); self::assertEquals( $value, ($this->getClassProperty($commonAnnotation, 'summary')) ->getValue($commonAnnotation) ); } }