Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
basz committed Oct 23, 2017
1 parent 1135c0d commit 5b22abf
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions tests/src/AssetActionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ public function testProcess()
[],
[]
);
$delegate = new Delegate();
$actual = $this->action->process($request, $delegate);
$requestHandler = new RequestHandler();
$actual = $this->action->process($request, $requestHandler);

$this->assertInstanceOf(ResponseInterface::class, $actual);

Expand Down
15 changes: 0 additions & 15 deletions tests/src/Delegate.php

This file was deleted.

15 changes: 15 additions & 0 deletions tests/src/RequestHandler.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace Hkt\Psr7Asset;

use Interop\Http\Server\RequestHandlerInterface;
use Psr\Http\Message\ServerRequestInterface;
use Zend\Diactoros\Response;

class RequestHandler implements RequestHandlerInterface
{
public function handle(ServerRequestInterface $request)
{
return new Response(null, 404);
}
}

0 comments on commit 5b22abf

Please sign in to comment.