public function testByteClosureFactory() { $byte = Bencode::byteFactory(function () { return strtoupper("string"); }); $this->assertEquals('STRING', $byte->write()); }