Exemplo n.º 1
0
 public function testSetChangeLogAndGetChangeLog()
 {
     $this->assertSame([], $this->rfc->getChangeLog());
     $changeLog = ['0.2.0' => 'Second version', '0.1.0' => 'First version'];
     $this->rfc->setChangeLog($changeLog);
     $this->assertSame($changeLog, $this->rfc->getChangeLog());
 }
Exemplo n.º 2
0
 /**
  * Returns array of changes in RFC 1 compared to RFC 2
  *
  * @param Rfc $rfc1
  * @param Rfc $rfc2
  * @return array
  */
 public function rfcDiff(Rfc $rfc1, Rfc $rfc2)
 {
     // Get any vote diffs between two RFCs
     $voteDiffs = $this->recursiveArrayDiff($rfc1->getVotes(), $rfc2->getVotes());
     return ['details' => $this->recursiveArrayDiff($rfc1->getDetails(), $rfc2->getDetails()), 'changeLog' => $this->recursiveArrayDiff($rfc1->getChangeLog(), $rfc2->getChangeLog()), 'votes' => $this->parseVotesDiff($voteDiffs, $rfc2->getVotes())];
 }
Exemplo n.º 3
0
 /**
  * Get the change log in a flat format
  *
  * @param Rfc $rfc
  * @return array
  */
 public function getChangeLogsAsTableRows(Rfc $rfc)
 {
     return $this->assocArrayToRows($rfc->getChangeLog());
 }