public function testSetDetailsAndGetDetails()
 {
     $this->assertSame([], $this->rfc->getDetails());
     $details = ['version' => '0.1.0', 'author' => 'Some dude'];
     $this->rfc->setDetails($details);
     $this->assertSame($details, $this->rfc->getDetails());
 }
 /**
  * @dataProvider rfcDiffDataProvider
  */
 public function testRfcDiffReturnsCorrectDiff($details, $changeLogs, $votes, $expectedDiff)
 {
     $rfc1 = new Rfc();
     $rfc2 = new Rfc();
     $rfc1->setDetails($details[0]);
     $rfc1->setChangeLog($changeLogs[0]);
     $rfc1->setVotes($votes[0]);
     $rfc2->setDetails($details[1]);
     $rfc2->setChangeLog($changeLogs[1]);
     $rfc2->setVotes($votes[1]);
     $this->assertSame($expectedDiff, $this->diffService->rfcDiff($rfc1, $rfc2));
 }
 public function testGetDetailsAsTableRows()
 {
     $rfc = new Rfc();
     $rfc->setDetails(['version' => '0.5.1', 'name' => 'In Operator', 'authors' => 'Niklas Keller me@kelunik.com, Bob Weinand bobwei9@hotmail.com', 'status' => 'Voting', 'First Published at' => 'http://wiki.php.net/rfc/in_operator']);
     $result = $this->rfcService->getDetailsAsTableRows($rfc);
     $expected = [['version', '0.5.1'], ['name', 'In Operator'], ['authors', 'Niklas Keller me@kelunik.com, Bob Weinand bobwei9@hotmail.com'], ['status', 'Voting'], ['First Published at', 'http://wiki.php.net/rfc/in_operator']];
     $this->assertSame($expected, $result);
 }
 /**
  * Add details to RFC
  *
  * @return self
  */
 public function loadDetails()
 {
     $this->rfc->setDetails($this->parseDetails());
     return $this;
 }