Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit 831e0ca

Browse files
committed
Re-enable zend-db and zend-session tests on Travis
Since zend-db and zend-session each have known-stable, forwards-compatible versions available, we can re-enable tests against them on Travis.
1 parent 238f368 commit 831e0ca

File tree

6 files changed

+2
-37
lines changed

6 files changed

+2
-37
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ before_install:
5252
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then composer require --dev --no-update satooshi/php-coveralls ; fi
5353
- if [[ $SERVICE_MANAGER_VERSION != '' ]]; then composer require --dev --no-update "zendframework/zend-servicemanager:$SERVICE_MANAGER_VERSION" ; fi
5454
- if [[ $SERVICE_MANAGER_VERSION == '' ]]; then composer require --dev --no-update "zendframework/zend-servicemanager:^3.0.3" ; fi
55-
- if [[ $SERVICE_MANAGER_VERSION == '' ]]; then composer remove --dev --no-update zendframework/zend-db zendframework/zend-session ; fi
5655

5756
install:
5857
- travis_retry composer install --no-interaction --ignore-platform-reqs

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
"require-dev": {
2121
"zendframework/zend-cache": "^2.6.1",
2222
"zendframework/zend-config": "^2.6",
23-
"zendframework/zend-db": "^2.5",
23+
"zendframework/zend-db": "^2.7",
2424
"zendframework/zend-filter": "^2.6",
2525
"zendframework/zend-http": "^2.5.4",
2626
"zendframework/zend-i18n": "^2.6",
2727
"zendframework/zend-math": "^2.6",
2828
"zendframework/zend-servicemanager": "^2.7.5 || ^3.0.3",
29-
"zendframework/zend-session": "^2.5",
29+
"zendframework/zend-session": "^2.6.2",
3030
"zendframework/zend-uri": "^2.5",
3131
"fabpot/php-cs-fixer": "1.7.*",
3232
"phpunit/PHPUnit": "^4.0"

test/CsrfTest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,6 @@ class CsrfTest extends \PHPUnit_Framework_TestCase
2828

2929
public function setUp()
3030
{
31-
if (! class_exists(Container::class)) {
32-
$this->markTestSkipped(
33-
'Skipping zend-session-related tests until the component is updated '
34-
. ' to zend-servicemanager/zend-eventmanager v3'
35-
);
36-
}
37-
3831
// Setup session handling
3932
$_SESSION = [];
4033
$sessionConfig = new StandardConfig([

test/Db/AbstractDbTest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,6 @@ class AbstractDbTest extends \PHPUnit_Framework_TestCase
2424

2525
public function setUp()
2626
{
27-
if (! class_exists('Zend\Db\Adapter\Adapter')) {
28-
$this->markTestSkipped(
29-
'Skipping zend-db-related tests until that component is updated '
30-
. 'to zend-servicemanager/zend-eventmanager v3'
31-
);
32-
}
33-
3427
$this->validator = new ConcreteDbValidator([
3528
'table' => 'table',
3629
'field' => 'field',

test/Db/NoRecordExistsTest.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,6 @@
1818
*/
1919
class NoRecordExistsTest extends \PHPUnit_Framework_TestCase
2020
{
21-
public function setUp()
22-
{
23-
if (! class_exists('Zend\Db\Adapter\Adapter')) {
24-
$this->markTestSkipped(
25-
'Skipping zend-db-related tests until that component is updated '
26-
. 'to zend-servicemanager/zend-eventmanager v3'
27-
);
28-
}
29-
}
30-
3121
/**
3222
* Return a Mock object for a Db result with rows
3323
*

test/Db/RecordExistsTest.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,6 @@
2121
*/
2222
class RecordExistsTest extends \PHPUnit_Framework_TestCase
2323
{
24-
public function setUp()
25-
{
26-
if (! class_exists(Adapter::class)) {
27-
$this->markTestSkipped(
28-
'Skipping zend-db-related tests until that component is updated '
29-
. 'to zend-servicemanager/zend-eventmanager v3'
30-
);
31-
}
32-
}
33-
3424
/**
3525
* Return a Mock object for a Db result with rows
3626
*

0 commit comments

Comments
 (0)