Skip to content

Commit

Permalink
Try to debug Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
defro committed Feb 27, 2021
1 parent 66be5c2 commit 0ce03e7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
language: php

php:
- 7.2
- 7.3
- 7.4
- 7.2.34
- 7.3.26
- 7.4.14
- 8.0.1

before_script:
- composer install --prefer-source --no-interaction --dev
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"guzzlehttp/guzzle": "~6.0"
},
"require-dev": {
"phpunit/phpunit": "^7.4",
"phpunit/phpunit": "^8",
"vlucas/phpdotenv": "^2.4",
"twig/twig": "^3.0"
},
Expand Down
4 changes: 2 additions & 2 deletions tests/StreetViewAccessorsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@

class StreetViewAccessorsTest extends \PHPUnit\Framework\TestCase
{
/** @var \Defro\Google\StreetView\Api */
/** @var Api */
protected $streetView;

public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
4 changes: 2 additions & 2 deletions tests/StreetViewImageUrlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ class StreetViewImageUrlTest extends \PHPUnit\Framework\TestCase
private function getApi(int $statusCode)
{
$response = new Response($statusCode);

$client = $this->createMock(Client::class);
$client
->method('__call')
->with($this->equalTo('get'))
->method('get')
->willReturn($response);

return new Api($client);
Expand Down

0 comments on commit 0ce03e7

Please sign in to comment.