/** * @expectedException \GuzzleHttp\Stream\Exception\CannotAttachException */ public function testCannotAttach() { $p = new AppendStream(); $p->attach('a'); }