Skip to content

Commit

Permalink
Merge branch 'release/0.4.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
nixilla committed Apr 3, 2019
2 parents b6e12f2 + c6016e6 commit e734523
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ language: php

php:
- 7.2
- 7.3

env:
global:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,4 @@ services:
arguments: [ "%twilio.username%", "%twilio.password%", ~, ~, '@twilio.http.client']
```

4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"require": {
"php": ">=5.6",
"symfony/framework-bundle": "~2.3||~3",
"symfony/framework-bundle": "~2.3||~3||~4",
"twig/twig": "~1.24||~2",
"kriswallsmith/buzz": "<0.16"
},
Expand All @@ -29,7 +29,7 @@
"sebastian/phpcpd": "^4.0",
"leanphp/phpspec-code-coverage": "^4.2",
"php-coveralls/php-coveralls": "^2.1",
"symfony/expression-language": "~2.3||~3",
"symfony/expression-language": "~2.3||~3||~4",
"twilio/sdk": "^5.19"
},
"autoload": {
Expand Down
20 changes: 20 additions & 0 deletions spec/Proxy/Twilio/CurlClientSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace spec\Nixilla\Api\LoggerBundle\Proxy\Twilio;

use Nixilla\Api\LoggerBundle\Logger\ApiInterface;
use Nixilla\Api\LoggerBundle\Proxy\Twilio\CurlClient;
use PhpSpec\ObjectBehavior;
use Prophecy\Argument;
Expand All @@ -12,4 +13,23 @@ function it_is_initializable()
{
$this->shouldHaveType(CurlClient::class);
}

function it_monitors_http_requests(ApiInterface $logger)
{
$this->setLogger($logger);

$logger->logCall(
Argument::any(),
Argument::any(),
Argument::any(),
Argument::any(),
Argument::any(),
Argument::any(),
Argument::any(),
Argument::any()
)->shouldBeCalled()
;

$this->request('GET', 'http://packagist.org', [], [], ['Content-Type' => 'text/plain'])->shouldNotReturn(null);
}
}

0 comments on commit e734523

Please sign in to comment.