Skip to content

Commit

Permalink
fix: update amp test because of a library change
Browse files Browse the repository at this point in the history
  • Loading branch information
valentin-claras committed Mar 12, 2021
1 parent 6bb5396 commit aa15c30
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/Adapter/Amp/EventLoopTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,20 @@ public function testStreamShouldReadFromWritable($expectedSequence = '')
// Because Amp resolve promises in a slightly different order.
parent::testStreamShouldReadFromWritable('W0R0W12345R12R34W6R56R');
}

public function testStreamShouldNotBeWritableIfClosed()
{
assert_options(ASSERT_EXCEPTION, 1);
$this->expectException(\Throwable::class);

parent::testStreamShouldNotBeWritableIfClosed();
}

public function testStreamShouldNotBeReadableIfClosed()
{
assert_options(ASSERT_EXCEPTION, 1);
$this->expectException(\Throwable::class);

parent::testStreamShouldNotBeReadableIfClosed();
}
}

0 comments on commit aa15c30

Please sign in to comment.