assertEquals('n/a', $version->getVersion()); $version = new Version(__DIR__ . '/Stub', __DIR__ . '/Stub/files', $config); $this->assertEquals('0.42.0-testing', $version->getVersion()); $version = new Version(__DIR__ . '/Stub/files', __DIR__ . '/Stub', $config); $this->assertEquals('1a2b3c4', $version->getVersion()); $config->set('version', '1.2.3-dev'); $this->assertEquals('1.2.3-dev', $version->getVersion()); } }