Skip to content

Commit 53f799f

Browse files
authored
Merge pull request #175 from StudioMaX/patch-1
Add PHP 7.2 and 7.3 to Travis
2 parents 3d97d90 + d1b51b8 commit 53f799f

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ php:
66
- 5.6
77
- 7.0
88
- 7.1
9+
- 7.2
10+
- 7.3
911

1012
env:
1113
- DRIVER=mysqli SEARCH_BUILD=SPHINX2 EXCLUDE_GROUP="--exclude-group=Manticore"
@@ -27,9 +29,12 @@ before_install:
2729
- $TRAVIS_BUILD_DIR/tests/install.sh
2830
- popd
2931

32+
install: composer update --prefer-dist --no-interaction
33+
3034
before_script:
3135
- composer dump-autoload
3236
- cd tests
3337
- $TRAVIS_BUILD_DIR/tests/run.sh
38+
- cd ..
3439

35-
script: phpunit --configuration travis/$DRIVER.phpunit.xml --coverage-text $EXCLUDE_GROUP
40+
script: ./vendor/bin/phpunit --configuration tests/travis/$DRIVER.phpunit.xml --coverage-text $EXCLUDE_GROUP

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"php": "^5.6 || ^7.0"
1616
},
1717
"require-dev": {
18-
"phpunit/phpunit": "6.3.*"
18+
"phpunit/phpunit": "^5.7 || 6.3.*"
1919
},
2020
"autoload": {
2121
"psr-4": {

tests/SphinxQL/ConnectionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ class ConnectionTest extends \PHPUnit\Framework\TestCase
1111
*/
1212
private $connection = null;
1313

14-
public function setUp()
14+
protected function setUp()
1515
{
1616
$this->connection = TestUtil::getConnectionDriver();
1717
$this->connection->setParams(array('host' => '127.0.0.1', 'port' => 9307));
1818
}
1919

20-
public function tearDown()
20+
protected function tearDown()
2121
{
2222
$this->connection = null;
2323
}

tests/SphinxQL/HelperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class HelperTest extends \PHPUnit\Framework\TestCase
1212
*/
1313
public $conn;
1414

15-
public function setUp()
15+
protected function setUp()
1616
{
1717
$conn = TestUtil::getConnectionDriver();
1818
$conn->setParam('port', 9307);

0 commit comments

Comments
 (0)