Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Http/Response/Strategy/DefaultResponseStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

final class DefaultResponseStrategy implements ResponseConverterStrategyInterface
{
public function supports(SymfonyResponse $response): bool
public function supports(SymfonyResponse $response): true
{
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Reboot/Strategy/AlwaysRebootStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

final class AlwaysRebootStrategy implements RebootStrategyInterface
{
public function shouldReboot(): bool
public function shouldReboot(): true
{
return true;
}
Expand Down
9 changes: 0 additions & 9 deletions tests/RebootStrategyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,6 @@
*/
final class RebootStrategyTest extends TestCase
{
public function testAlwaysRebootStrategyAlwaysReturnsTrue(): void
{
$strategy = new AlwaysRebootStrategy();

$this->assertTrue($strategy->shouldReboot());
$this->assertTrue($strategy->shouldReboot());
$this->assertTrue($strategy->shouldReboot());
}

public function testMaxJobsRebootStrategyReturnsFalseUntilLimit(): void
{
$strategy = new MaxJobsRebootStrategy(3, 0);
Expand Down
9 changes: 0 additions & 9 deletions tests/Strategy/DefaultResponseStrategyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,10 @@

use CrazyGoat\WorkermanBundle\Http\Response\Strategy\DefaultResponseStrategy;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Response;

final class DefaultResponseStrategyTest extends TestCase
{
public function testSupportsAlwaysReturnsTrue(): void
{
$strategy = new DefaultResponseStrategy();

$this->assertTrue($strategy->supports(new Response()));
$this->assertTrue($strategy->supports(new JsonResponse(['test'])));
}

public function testConvertReturnsWorkermanResponseWithContent(): void
{
$strategy = new DefaultResponseStrategy();
Expand Down
Loading