@@ -35,17 +35,18 @@ public function testConstructorWithExcessiveMode()
3535
3636 /**
3737 * @covers React\Stream\ReadableResourceStream::__construct
38+ * @expectedException InvalidArgumentException
3839 */
3940 public function testConstructorThrowsExceptionOnInvalidStream ()
4041 {
4142 $ loop = $ this ->createLoopMock ();
4243
43- $ this ->setExpectedException ('InvalidArgumentException ' );
4444 new ReadableResourceStream (false , $ loop );
4545 }
4646
4747 /**
4848 * @covers React\Stream\ReadableResourceStream::__construct
49+ * @expectedException InvalidArgumentException
4950 */
5051 public function testConstructorThrowsExceptionOnWriteOnlyStream ()
5152 {
@@ -55,7 +56,6 @@ public function testConstructorThrowsExceptionOnWriteOnlyStream()
5556
5657 $ loop = $ this ->createLoopMock ();
5758
58- $ this ->setExpectedException ('InvalidArgumentException ' );
5959 new ReadableResourceStream (STDOUT , $ loop );
6060 }
6161
@@ -76,6 +76,7 @@ public function testConstructorThrowsExceptionOnWriteOnlyStreamWithExcessiveMode
7676
7777 /**
7878 * @covers React\Stream\ReadableResourceStream::__construct
79+ * @expectedException RuntimeException
7980 */
8081 public function testConstructorThrowsExceptionIfStreamDoesNotSupportNonBlocking ()
8182 {
@@ -86,7 +87,6 @@ public function testConstructorThrowsExceptionIfStreamDoesNotSupportNonBlocking(
8687 $ stream = fopen ('blocking://test ' , 'r+ ' );
8788 $ loop = $ this ->createLoopMock ();
8889
89- $ this ->setExpectedException ('RuntimeException ' );
9090 new ReadableResourceStream ($ stream , $ loop );
9191 }
9292
0 commit comments