fix tests
This commit is contained in:
parent
0d5a2b46e6
commit
fb3da0face
@ -182,7 +182,7 @@ class Taskwarrior
|
||||
return $this->version;
|
||||
}
|
||||
|
||||
return $this->version = $this->command('_version');
|
||||
return $this->version = trim($this->command('_version'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -179,7 +179,7 @@ class TaskManagerTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
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(
|
||||
'taskwarrior version %s dont support modified attr',
|
||||
$this->taskwarrior->version()
|
||||
|
Loading…
Reference in New Issue
Block a user