Change travis-ci configuration

This commit is contained in:
Frederic Guillot 2015-06-20 11:19:44 -04:00
parent cb0916d10e
commit d3f789764d
5 changed files with 8 additions and 6 deletions

View File

@ -1,6 +1,7 @@
language: php
php:
- hhvm
- 7.0
- 5.6
- 5.5
@ -11,10 +12,11 @@ matrix:
fast_finish: true
allow_failures:
- php: 7.0
- php: hhvm
before_script:
- phpenv config-add tests/php.ini
- composer install
script:
- phpunit -c tests/units.sqlite.xml

2
tests/php.ini Normal file
View File

@ -0,0 +1,2 @@
short_open_tag = On
date.timezone = UTC

View File

@ -9,8 +9,6 @@ use Symfony\Component\Stopwatch\Stopwatch;
use SimpleLogger\Logger;
use SimpleLogger\File;
date_default_timezone_set('UTC');
class FakeHttpClient
{
private $url = '';

View File

@ -94,7 +94,7 @@ class TaskCreationTest extends Base
$this->assertEquals('', $task['reference']);
$this->assertEquals(time(), $task['date_creation'], 'Wrong timestamp', 1);
$this->assertEquals(time(), $task['date_modification'], 'Wrog timestamp', 1);
$this->assertEquals(time(), $task['date_modification'], 'Wrong timestamp', 1);
$this->assertEquals(0, $task['date_due']);
$this->assertEquals(0, $task['date_completed']);
$this->assertEquals(0, $task['date_started']);

View File

@ -29,7 +29,7 @@ class TaskStatusTest extends Base
$this->assertNotEmpty($task);
$this->assertEquals(Task::STATUS_OPEN, $task['is_active']);
$this->assertEquals(0, $task['date_completed']);
$this->assertEquals(time(), $task['date_modification']);
$this->assertEquals(time(), $task['date_modification'], '', 1);
// We close the task
@ -54,7 +54,7 @@ class TaskStatusTest extends Base
$this->assertNotEmpty($task);
$this->assertEquals(Task::STATUS_OPEN, $task['is_active']);
$this->assertEquals(0, $task['date_completed']);
$this->assertEquals(time(), $task['date_modification'], 1);
$this->assertEquals(time(), $task['date_modification'], '', 1);
$called = $this->container['dispatcher']->getCalledListeners();
$this->assertArrayHasKey('task.close.TaskStatusTest::onTaskClose', $called);