public function testCloseResource() { $stream = new Stream(); $stream->close(); $this->assertNull($stream->getResource()); }