Skip to content

Add 1.0.2 and 1.0.3 to the list of supported versions  #81

@garemoko

Description

@garemoko

Seems like we just need to change here:

public function testStaticFactoryReturnsInstance() {
$this->assertInstanceOf("TinCan\Version", Version::v101(), "factory returns instance");
}
public function testToString() {
$this->assertInternalType("string", (string) Version::v101(), "object converts to string");
}
public function testHasValueReturnsBool() {
$this->assertTrue(Version::v101()->hasValue(Version::V101), "object has correct value");
}

and:

const V101 = "1.0.1";
const V100 = "1.0.0";
const V095 = "0.95";
/**#@- */
/** @var array string => bool */
private static $supported = [
self::V101 => true,
self::V100 => true,
self::V095 => false
];

Should we modify this so that any 1.0.x version is supported?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions