public function testWriteVariable() { $access = new PhpStreamAccess($this->getStream()); $access->writeVariable('foobar'); $this->assertEquals('$foobar', $this->getStream()->getBinary()); }