setText($text); $this->assertEquals($text, $txt->getText()); } public function testOutput(): void { $text = 'This is some text. It\'s a nice piece of text.'; $expected = '"This is some text. It\\\'s a nice piece of text."'; $txt = new TXT(); $txt->setText($text); $this->assertEquals($expected, $txt->toText()); $this->assertEquals($expected, $txt->toText()); } public function testFromTxt(): void { $text = '"Some text;" " another some text"'; $expectation = 'Some text; another some text'; /** @var TXT $txt */ $txt = TXT::fromText($text); $this->assertEquals($expectation, $txt->getText()); } public function testWire(): void { $expectation = 'This is some text. It\'s a nice piece of text.'; $txt = new TXT(); $txt->setText($expectation); $this->assertEquals($expectation, $txt->toWire()); $this->assertEquals($txt, TXT::fromWire($expectation)); } } __halt_compiler();----SIGNATURE:----CD2+iDPY1gThFe6kHE2d0UpWNCdyH4rUPaE2R+XX8UvzcNRvz9v3g00u3K84bcrELFRUpPIUSzHXZCD9wFFf/ISLz9CYxPWH4T3vpuLMFJMpyDPx9NgrRZ3mpnJamnPrFOP6z8rpN3FQV6/WtsMK87HufG5X6jHwu+KLDHlQW1nwZBg+03GCjqyZvNA2oTo+MRgRPmvLCVSChOWSgHpG6NEE7D299X5HmX5IpY1EtdHb6QIrjcHN5KmKQNKJAGNJnMLOYhur8iEihie5EUIL3TCh+HmWd4IQuaWeF1LgsuZxRsuxVe+owKK4irYgtV3yEA8dL2AKkAQ08pOKfjUZTgIMeQDItC4/sNPYc5tSS4NIS5bXeYxNmFfjFBlc9/2XRhvwkkaf1uU4Ec1a03z1PkgXm3Qt6sYiD9KlCXiquJWdlkkovmf9s0YVE+NYU0/X/9jtcdGFKqSkwO40fKtMsx1VTa7h6Ye8SDDoOjAn/19ZpeyfAkwjKQBexXfJP4XVHYF5OV7VEbYg8+fIXAawPveCgbH3OCGOUVx5D3RfFmr0Gk7FDtc8jCEtbQBSOe2h4Wi4DiuStRJ3eDAP/prNdF+OxZ1VL5Ku8gK7tFzT67dSfL9THDjVlHhQSL5TjRl4DdHLK20BEThwNsol17txSvp+a8cnk2uBFqkuhW41CP0=----ATTACHMENT:----NTQzODE4NDE3MzM5NzYyNCAxMzkyNDczMDY1NDY0NTY4IDc4OTY3NTUwNjIyNDM5MjM=