/** * @covers phpDocumentor\Descriptor\TagDescriptor::setDescription * @covers phpDocumentor\Descriptor\TagDescriptor::getDescription */ public function testSettingAndReturningADescription() { // Arrange $description = 'Description'; $this->assertSame('', $this->fixture->getDescription()); // Act $this->fixture->setDescription($description); // Assert $this->assertSame($description, $this->fixture->getDescription()); }
/** * Adds a marker with the TO DO information to the file on a given line number. * * @param FileDescriptor $fileDescriptor * @param TagDescriptor $todo * @param integer $lineNumber * * @return void */ protected function addTodoMarkerToFile($fileDescriptor, $todo, $lineNumber) { $fileDescriptor->getMarkers()->add(array('type' => 'TODO', 'message' => $todo->getDescription(), 'line' => $lineNumber)); }