/** * Ensures that the rmt config section can be added to the composer file. */ public function testAddRmtConfigSection() { $config = \Liip\RMT\Config::create(array('vcs' => 'git', "prerequisites" => array("working-copy-check", "display-last-changes"), 'versionPersister' => "vcs-tag")); $serialized = $this->helper->addRMTConfigSection($config); $this->assertContains('vcs-tag', $serialized); $config = $this->helper->getRMTConfigSection(); $this->assertNotNull($config); $this->assertEquals('git', $config->getVcs(), var_export($config, true)); }