From aa6e27cf4fbbb4713b1cdc933c4719ae9da78c71 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Sat, 31 Jan 2015 09:15:51 +0100 Subject: [PATCH] Tests are working again --- .travis.yml | 14 +++++++++++- app/build.xml | 22 +++++++++++++++++++ app/phpunit.xml.dist | 15 ++++++++----- .../Tests/Controller/EntryControllerTest.php | 3 +-- 4 files changed, 46 insertions(+), 8 deletions(-) create mode 100644 app/build.xml diff --git a/.travis.yml b/.travis.yml index 2971c5b9..1d90a748 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,18 @@ language: php + php: + - 5.4 - 5.5 + - 5.6 + branches: only: - - refactor \ No newline at end of file + - refactor + +before_script: + - composer self-update + - echo 'date.timezone = "Europe/Paris"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini + +script: + - ant -f app/build.xml prepare + - phpunit -c app --coverage-text diff --git a/app/build.xml b/app/build.xml new file mode 100644 index 00000000..16ef73ed --- /dev/null +++ b/app/build.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/phpunit.xml.dist b/app/phpunit.xml.dist index 0be14ca9..6593a2f0 100644 --- a/app/phpunit.xml.dist +++ b/app/phpunit.xml.dist @@ -1,12 +1,17 @@ - - + > + ../src/Wallabag/CoreBundle/Tests diff --git a/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php b/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php index af20f31f..786ff811 100644 --- a/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php +++ b/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php @@ -10,9 +10,8 @@ class EntryControllerTest extends WebTestCase { $client = static::createClient(); - $crawler = $client->request('GET', '/app/index'); + $crawler = $client->request('GET', '/new'); $this->assertEquals(200, $client->getResponse()->getStatusCode()); - $this->assertTrue($crawler->filter('html:contains("Homepage")')->count() > 0); } } -- 2.41.0