setVersion() public method

sets version
public setVersion ( string $version ) : void
$version string version to set
return void
Ejemplo n.º 1
0
 /**
  * Test for Theme::checkVersion
  *
  * @return void
  *
  * @depends testLoadInfo
  */
 public function testGetSetCheckVersion()
 {
     $this->assertEquals('0.0.0.0', $this->object->getVersion(), 'Version 0.0.0.0 by default');
     $this->object->setVersion("1.2.3.4");
     $this->assertEquals('1.2.3.4', $this->object->getVersion());
     $this->assertFalse($this->object->checkVersion("0.0.1.1"));
     $this->assertTrue($this->object->checkVersion("2.0.1.1"));
 }