Skip to content

Commit

Permalink
Merge pull request #9 from mikemand/guzzle-7-support
Browse files Browse the repository at this point in the history
Add support for Guzzle 7, drop support for PHP 5
  • Loading branch information
masbug authored Dec 14, 2020
2 parents 4675505 + cc89b17 commit e922737
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 30 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ composer.lock
composer.phar
build
vendor
.phpunit.result.cache
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ language: php
sudo: false

php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4

before_script:
- travis_retry composer self-update
Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"flysystem",
"google-drive",
"translated",
"extended"
"extended"
],
"license": "Apache-2.0",
"authors": [
Expand All @@ -16,20 +16,20 @@
{
"name": "Mitja Spes",
"email": "mitja@lxnav.com"
}
}
],
"require": {
"php": ">=5.6.4",
"php": "^7.2",
"ext-mbstring": "*",
"guzzlehttp/guzzle": ">=6.3 <7.0",
"league/flysystem": ">=1.0 < 2.0",
"google/apiclient": ">=2.2 <3.0"
"guzzlehttp/guzzle": "^6.3 | ^7.0",
"league/flysystem": "^1.0",
"google/apiclient": "^2.2"
},
"suggest": {
"nao-pon/flysystem-cached-extra": "Required for elFinder"
},
"require-dev": {
"phpunit/phpunit": "~5.0|~6.0|~7.0"
"phpunit/phpunit": "^9.3"
},
"autoload": {
"psr-4": {
Expand Down
31 changes: 14 additions & 17 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,29 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php"
backupGlobals="false"
backupStaticAttributes="false"
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
verbose="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
>
<testsuites>
<testsuite name="Flysystem Google Drive Adapter Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
</include>
</coverage>
<logging>
<log type="tap" target="build/report.tap"/>
<log type="junit" target="build/report.junit.xml"/>
<log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/>
<log type="coverage-text" target="build/coverage.txt"/>
<log type="coverage-clover" target="build/logs/clover.xml"/>
<junit outputFile="build/junit.xml"/>
<teamcity outputFile="build/teamcity.txt"/>
<testdoxHtml outputFile="build/testdox.html"/>
<testdoxText outputFile="build/testdox.txt"/>
<testdoxXml outputFile="build/testdox.xml"/>
<text outputFile="build/logfile.txt"/>
</logging>
</phpunit>
8 changes: 5 additions & 3 deletions tests/GoogleDriveAdapterTests.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<?php

class GoogleDriveTests extends PHPUnit_Framework_TestCase
use PHPUnit\Framework\TestCase;

class GoogleDriveAdapterTests extends TestCase
{
// TBD
// TBD

public function testTrueIsTrue()
{
$this->assertTrue(true);
$this->assertTrue(true);
}
}

0 comments on commit e922737

Please sign in to comment.