Skip to content

Commit

Permalink
Merge pull request #44 from M6Web/fix/ci-examples
Browse files Browse the repository at this point in the history
Fixed CI: examples are not tested
  • Loading branch information
b-viguier authored Apr 21, 2021
2 parents e9bf5e7 + 86ce24b commit 373a145
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/00-README-samples.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function waitException(Tornado\EventLoop $eventLoop)
$eventLoop = new Tornado\Adapter\Tornado\EventLoop();
//$eventLoop = new Tornado\Adapter\Tornado\SynchronousEventLoop();
//$eventLoop = new Tornado\Adapter\Amp\EventLoop();
//$eventLoop = new Tornado\Adapter\ReactPhp\EventLoop(new React\EventLoop\StreamSelectLoop());
//$eventLoop = new Tornado\Adapter\ReactPhp\EventLoop(new \React\EventLoop\StreamSelectLoop());

// Tornado provides only one HttpClient implementation, using Guzzle
$httpClient = new Tornado\Adapter\Guzzle\HttpClient($eventLoop, new Tornado\Adapter\Guzzle\CurlMultiClientWrapper());
Expand Down
2 changes: 1 addition & 1 deletion examples/01-async-countdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function asynchronousCountdown(EventLoop $eventLoop, string $name, int $count):
$eventLoop = new Adapter\Tornado\EventLoop();
//$eventLoop = new Adapter\Tornado\SynchronousEventLoop();
//$eventLoop = new Adapter\Amp\EventLoop();
//$eventLoop = new Adapter\ReactPhp\EventLoop(new React\EventLoop\StreamSelectLoop());
//$eventLoop = new Adapter\ReactPhp\EventLoop(new \React\EventLoop\StreamSelectLoop());

echo "Let's start!\n";

Expand Down
2 changes: 1 addition & 1 deletion examples/02-failures.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function throwingGenerator(): \Generator
$eventLoop = new Adapter\Tornado\EventLoop();
//$eventLoop = new Adapter\Tornado\SynchronousEventLoop();
//$eventLoop = new Adapter\Amp\EventLoop();
//$eventLoop = new Adapter\ReactPhp\EventLoop(new React\EventLoop\StreamSelectLoop());
//$eventLoop = new Adapter\ReactPhp\EventLoop(new \React\EventLoop\StreamSelectLoop());

echo "Let's start!\n";

Expand Down
2 changes: 1 addition & 1 deletion examples/03-http-client.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function monitorRequest(EventLoop $eventLoop, HttpClient $httpClient, string $ur
$eventLoop = new Adapter\Tornado\EventLoop();
//$eventLoop = new Adapter\Tornado\SynchronousEventLoop();
//$eventLoop = new Adapter\Amp\EventLoop();
//$eventLoop = new Adapter\ReactPhp\EventLoop(new React\EventLoop\StreamSelectLoop());
//$eventLoop = new Adapter\ReactPhp\EventLoop(new \React\EventLoop\StreamSelectLoop());

// Choose your adapter
$httpClient = new Adapter\Symfony\HttpClient(new \Symfony\Component\HttpClient\CurlHttpClient(), $eventLoop, new \Http\Factory\Guzzle\ResponseFactory(), new \Http\Factory\Guzzle\StreamFactory());
Expand Down
2 changes: 1 addition & 1 deletion examples/04-foreach.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function compareMethods(EventLoop $eventLoop)
$eventLoop = new Adapter\Tornado\EventLoop();
//$eventLoop = new Adapter\Tornado\SynchronousEventLoop();
//$eventLoop = new Adapter\Amp\EventLoop();
//$eventLoop = new Adapter\ReactPhp\EventLoop(new React\EventLoop\StreamSelectLoop());
//$eventLoop = new Adapter\ReactPhp\EventLoop(new \React\EventLoop\StreamSelectLoop());

echo "Let's start!\n";
// Run the event loop until our goal promise is reached.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace M6WebExamples\Tornado\Tests;
namespace M6WebExamplesTests\Tornado;

use PHPUnit\Framework\TestCase;

Expand Down

0 comments on commit 373a145

Please sign in to comment.