public function testDetach() { $this->assertInternalType('resource', $this->stream->detach()); $this->assertFalse($this->stream->isWritable()); }