A text, audio and video chat application built with webRTC and Ratchet (PHP WebSocket)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

48 lines
998 B

<?php
namespace React\Tests\Stream;
use React\Stream\ReadableStream;
class ReadableStreamTest extends TestCase
{
/** @test */
public function itShouldBeReadableByDefault()
{
$readable = new ReadableStream();
$this->assertTrue($readable->isReadable());
}
/** @test */
public function pauseShouldDoNothing()
{
$readable = new ReadableStream();
$readable->pause();
}
/** @test */
public function resumeShouldDoNothing()
{
$readable = new ReadableStream();
$readable->resume();
}
/** @test */
public function closeShouldClose()
{
$readable = new ReadableStream();
$readable->close();
$this->assertFalse($readable->isReadable());
}
/** @test */
public function doubleCloseShouldWork()
{
$readable = new ReadableStream();
$readable->close();
$readable->close();
$this->assertFalse($readable->isReadable());
}
}