public function testGetSetChanges() { $fixes = ['#1', '#2', '#3']; $changes = ['fixed' => $fixes, 'added' => ['Super awesome feature']]; $this->release->setAllChanges($changes); $this->assertEquals($changes, $this->release->getAllChanges()); $this->assertEquals($fixes, $this->release->getChanges('fixed')); $this->assertNull($this->release->getChanges('foobar')); $this->release->addChange('fixed', '#4'); $this->assertEquals(array_merge($fixes, ['#4']), $this->release->getChanges('fixed')); $this->release->addChange('new', 'foobar'); $this->assertEquals(['foobar'], $this->release->getChanges('new')); $newFixes = ['a']; $this->release->setChanges('fixed', $newFixes); $this->assertEquals($newFixes, $this->release->getChanges('fixed')); }