Skip to content
Snippets Groups Projects
Commit bc91c2e9 authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Replace release version with a constant

parent 22d97122
No related branches found
No related tags found
No related merge requests found
...@@ -17,6 +17,11 @@ use Webmozart\Assert\Assert; ...@@ -17,6 +17,11 @@ use Webmozart\Assert\Assert;
*/ */
class Configuration implements Utils\ClearableState class Configuration implements Utils\ClearableState
{ {
/**
* The release version of this package
*/
public const VERSION = 'master';
/** /**
* A default value which means that the given option is required. * A default value which means that the given option is required.
* *
...@@ -345,7 +350,7 @@ class Configuration implements Utils\ClearableState ...@@ -345,7 +350,7 @@ class Configuration implements Utils\ClearableState
*/ */
public function getVersion(): string public function getVersion(): string
{ {
return 'master'; return self::VERSION;
} }
......
...@@ -19,7 +19,7 @@ class ConfigurationTest extends \SimpleSAML\Test\Utils\ClearStateTestCase ...@@ -19,7 +19,7 @@ class ConfigurationTest extends \SimpleSAML\Test\Utils\ClearStateTestCase
public function testGetVersion() public function testGetVersion()
{ {
$c = Configuration::getOptionalConfig(); $c = Configuration::getOptionalConfig();
$this->assertTrue(is_string($c->getVersion())); $this->assertEquals($c->getVersion(), Configuration::VERSION);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment