Skip to content

Commit

Permalink
Initate services.
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Apr 17, 2019
1 parent cbabeed commit 49323a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Feature/StreamServiceProviderTest.php
Expand Up @@ -3,6 +3,7 @@
namespace Laravie\Stream\Tests\Feature;

use React\EventLoop\LoopInterface;
use React\Stream\WritableResourceStream;
use React\Stream\WritableStreamInterface;

class StreamServiceProviderTest extends TestCase
Expand All @@ -12,5 +13,8 @@ public function it_provides_proper_services()
{
$this->assertTrue($this->app->bound(LoopInterface::class));
$this->assertTrue($this->app->bound(WritableStreamInterface::class));

$this->assertInstanceOf(LoopInterface::class, $this->app->make(LoopInterface::class));
$this->assertInstanceOf(WritableResourceStream::class, $this->app->make(WritableStreamInterface::class));
}
}

0 comments on commit 49323a8

Please sign in to comment.