Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
dbu committed Sep 4, 2024
1 parent dd01464 commit 7e0360d
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 16 deletions.
2 changes: 0 additions & 2 deletions src/Collector/Collector.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
* @author Fabien Bourigault <[email protected]>
*
* @internal
*
* @final
*/
final class Collector extends DataCollector
{
Expand Down
2 changes: 0 additions & 2 deletions src/Collector/Formatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
* @author Fabien Bourigault <[email protected]>
*
* @internal
*
* @final
*/
final class Formatter implements MessageFormatter
{
Expand Down
4 changes: 1 addition & 3 deletions src/Collector/ProfileClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@
* @author Fabien Bourigault <[email protected]>
*
* @internal
*
* @final
*/
final class ProfileClient implements ClientInterace, HttpAsyncClient
final class ProfileClient implements ClientInterface, HttpAsyncClient
{
use VersionBridgeClient;

Expand Down
2 changes: 0 additions & 2 deletions src/Collector/ProfileClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
* @author Fabien Bourigault <[email protected]>
*
* @internal
*
* @final
*/
final class ProfileClientFactory implements ClientFactory
{
Expand Down
2 changes: 0 additions & 2 deletions src/Collector/ProfilePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
* @author Fabien Bourigault <[email protected]>
*
* @internal
*
* @final
*/
final class ProfilePlugin implements Plugin
{
Expand Down
2 changes: 0 additions & 2 deletions src/Collector/StackPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
* @author Fabien Bourigault <[email protected]>
*
* @internal
*
* @final
*/
final class StackPlugin implements Plugin
{
Expand Down
5 changes: 3 additions & 2 deletions tests/Unit/Collector/ProfilePluginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use Http\HttplugBundle\Collector\ProfilePlugin;
use Http\HttplugBundle\Collector\Stack;
use Http\Message\Formatter as MessageFormatter;
use Http\Message\Formatter\SimpleFormatter;
use Http\Promise\FulfilledPromise;
use Http\Promise\Promise;
use Http\Promise\RejectedPromise;
Expand Down Expand Up @@ -42,7 +43,7 @@ class ProfilePluginTest extends TestCase
public function setUp(): void
{
$this->collector = new Collector();
$messageFormatter = $this->createMock(MessageFormatter::class);
$messageFormatter = $this->createMock(SimpleFormatter::class);
$this->formatter = new Formatter($messageFormatter, $this->createMock(MessageFormatter::class));

$this->plugin = $this->getMockBuilder(Plugin::class)->getMock();
Expand Down Expand Up @@ -74,7 +75,7 @@ public function setUp(): void
$this->subject = new ProfilePlugin(
$this->plugin,
$this->collector,
$this->formatter
$this->formatter,
);
}

Expand Down
3 changes: 2 additions & 1 deletion tests/Unit/Collector/StackPluginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use Http\HttplugBundle\Collector\Formatter;
use Http\HttplugBundle\Collector\StackPlugin;
use Http\Message\Formatter as MessageFormatter;
use Http\Message\Formatter\SimpleFormatter;
use Http\Promise\FulfilledPromise;
use Http\Promise\RejectedPromise;
use PHPUnit\Framework\Error\Warning;
Expand Down Expand Up @@ -48,7 +49,7 @@ class StackPluginTest extends TestCase
public function setUp(): void
{
$this->collector = new Collector();
$messageFormatter = $this->createMock(MessageFormatter::class);
$messageFormatter = $this->createMock(SimpleFormatter::class);
$this->formatter = new Formatter($messageFormatter, $this->createMock(MessageFormatter::class));
$this->request = new Request('GET', '/');
$this->response = new Response();
Expand Down

0 comments on commit 7e0360d

Please sign in to comment.