Esempio n. 1
0
 /**
  * Checks if this update is newer than the version given.
  *
  * @param Version $version The current version.
  *
  * @return boolean TRUE if the update is newer, FALSE if not.
  */
 public function isNewer(Version $version)
 {
     return $this->version->isGreaterThan($version);
 }
Esempio n. 2
0
 /**
  * @dataProvider getGreaterDataSet
  */
 public function testGreaterThan($left, $right, $reuslt)
 {
     $left = new Version($left);
     $right = new Version($right);
     $this->assertTrue($left->isGreaterThan($right));
 }