Skip to content

Commit

Permalink
TestLogger added
Browse files Browse the repository at this point in the history
  • Loading branch information
Spomky committed Dec 7, 2021
1 parent 882db25 commit 6cf2815
Show file tree
Hide file tree
Showing 13 changed files with 238 additions and 74 deletions.
63 changes: 0 additions & 63 deletions .php-cs-fixer.dist.php

This file was deleted.

2 changes: 1 addition & 1 deletion tests/Library/Functional/Payload/AES128GCMTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
use Psr\Cache\CacheItemPoolInterface;
use Psr\Http\Message\RequestInterface;
use Psr\Log\LoggerInterface;
use Psr\Log\Test\TestLogger;
use Symfony\Component\Cache\Adapter\ArrayAdapter;
use Symfony\Component\Cache\Adapter\NullAdapter;
use function unpack;
use WebPush\Base64Url;
use WebPush\Payload\AES128GCM;
use WebPush\Payload\ServerKey;
use WebPush\Subscription;
use WebPush\Tests\TestLogger;
use WebPush\Utils;

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/Library/Functional/VAPID/LcobucciProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
use DateTimeImmutable;
use InvalidArgumentException;
use PHPUnit\Framework\TestCase;
use Psr\Log\Test\TestLogger;
use const STR_PAD_RIGHT;
use WebPush\Base64Url;
use WebPush\Tests\TestLogger;
use WebPush\VAPID\LcobucciProvider;

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/Library/Functional/VAPID/VAPIDTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
use function json_decode;
use Nyholm\Psr7\Request;
use PHPUnit\Framework\TestCase;
use Psr\Log\Test\TestLogger;
use WebPush\Base64Url;
use WebPush\Notification;
use WebPush\Subscription;
use WebPush\Tests\TestLogger;
use WebPush\VAPID\LcobucciProvider;
use WebPush\VAPID\VAPIDExtension;

Expand Down
2 changes: 1 addition & 1 deletion tests/Library/Functional/VAPID/WebTokenProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
use DateTimeImmutable;
use InvalidArgumentException;
use PHPUnit\Framework\TestCase;
use Psr\Log\Test\TestLogger;
use const STR_PAD_RIGHT;
use WebPush\Base64Url;
use WebPush\Tests\TestLogger;
use WebPush\VAPID\WebTokenProvider;

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/Library/Unit/ExtensionManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

use Nyholm\Psr7\Request;
use PHPUnit\Framework\TestCase;
use Psr\Log\Test\TestLogger;
use WebPush\ExtensionManager;
use WebPush\Notification;
use WebPush\PreferAsyncExtension;
use WebPush\Subscription;
use WebPush\Tests\TestLogger;
use WebPush\TTLExtension;

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/Library/Unit/PayloadExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
use InvalidArgumentException;
use Nyholm\Psr7\Request;
use PHPUnit\Framework\TestCase;
use Psr\Log\Test\TestLogger;
use WebPush\Notification;
use WebPush\Payload\AESGCM;
use WebPush\Payload\PayloadExtension;
use WebPush\Subscription;
use WebPush\Tests\TestLogger;

/**
* @internal
Expand Down
2 changes: 1 addition & 1 deletion tests/Library/Unit/SyncExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

use Nyholm\Psr7\Request;
use PHPUnit\Framework\TestCase;
use Psr\Log\Test\TestLogger;
use WebPush\Notification;
use WebPush\PreferAsyncExtension;
use WebPush\Subscription;
use WebPush\Tests\TestLogger;

/**
* @internal
Expand Down
2 changes: 1 addition & 1 deletion tests/Library/Unit/TTLExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

use Nyholm\Psr7\Request;
use PHPUnit\Framework\TestCase;
use Psr\Log\Test\TestLogger;
use WebPush\Notification;
use WebPush\Subscription;
use WebPush\Tests\TestLogger;
use WebPush\TTLExtension;

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/Library/Unit/TopicExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

use Nyholm\Psr7\Request;
use PHPUnit\Framework\TestCase;
use Psr\Log\Test\TestLogger;
use WebPush\Notification;
use WebPush\Subscription;
use WebPush\Tests\TestLogger;
use WebPush\TopicExtension;

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/Library/Unit/UrgencyExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

use Nyholm\Psr7\Request;
use PHPUnit\Framework\TestCase;
use Psr\Log\Test\TestLogger;
use WebPush\Notification;
use WebPush\Subscription;
use WebPush\Tests\TestLogger;
use WebPush\UrgencyExtension;

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/Library/Unit/WebPushTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
use PHPUnit\Framework\TestCase;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;
use Psr\Log\Test\TestLogger;
use WebPush\ExtensionManager;
use WebPush\Notification;
use WebPush\Subscription;
use WebPush\Tests\TestLogger;
use WebPush\WebPush;

/**
Expand Down
Loading

0 comments on commit 6cf2815

Please sign in to comment.