fix tests

This commit is contained in:
DavidBadura 2015-02-08 13:13:03 +00:00
parent 0d5a2b46e6
commit fb3da0face
2 changed files with 2 additions and 2 deletions

View File

@ -182,7 +182,7 @@ class Taskwarrior
return $this->version; return $this->version;
} }
return $this->version = $this->command('_version'); return $this->version = trim($this->command('_version'));
} }
/** /**

View File

@ -179,7 +179,7 @@ class TaskManagerTest extends \PHPUnit_Framework_TestCase
public function testModified() public function testModified()
{ {
if (version_compare($this->taskwarrior->version(), '2.2.0', '>=')) { if (version_compare($this->taskwarrior->version(), '2.2.0') < 0) {
$this->markTestSkipped(sprintf( $this->markTestSkipped(sprintf(
'taskwarrior version %s dont support modified attr', 'taskwarrior version %s dont support modified attr',
$this->taskwarrior->version() $this->taskwarrior->version()