Skip to content

Commit

Permalink
PHPUnit deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
dkraczkowski committed Feb 1, 2019
1 parent b7c263a commit 96d28f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Igni\Tests\Functional\Network\Http\Middleware;

use Igni\Exception\RuntimeException;
use Igni\Network\Exception\MiddlewareException;
use Igni\Network\Http\Middleware\CallableMiddleware;
use Igni\Network\Http\ServerRequest;
use Igni\Tests\Fixtures\CustomHttpException;
Expand All @@ -21,11 +22,9 @@ public function testCanInstantiate(): void
self::assertInstanceOf(CallableMiddleware::class, $middleware);
}

/**
* @expectedException \Igni\Network\Exception\MiddlewareException
*/
public function testNegativeUsageCase(): void
{
$this->expectException(MiddlewareException::class);
$middleware = new CallableMiddleware(function() {});
$middleware->process(
Mockery::mock(ServerRequestInterface::class),
Expand Down
3 changes: 0 additions & 3 deletions tests/Functional/Network/ServerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,6 @@ public function testAddingListeners(): void
$onReceive = Mockery::mock(Server\OnReceiveListener::class);
$server = $this->mockServer($listeners);
$server->addListener($onReceive);
$listeners = self::readAttribute($server, 'listeners');
self::assertSame([Server\OnReceiveListener::class], array_keys($listeners));
self::assertCount(1, $listeners[Server\OnReceiveListener::class]);
self::assertTrue($server->hasListener($onReceive));
}

Expand Down

0 comments on commit 96d28f0

Please sign in to comment.