setCpu($cpu); $hinfo->setOs($os); $this->assertEquals($expectation, $hinfo->toText()); } public function testGetters(): void { $cpu = '2.7GHz'; $os = 'Ubuntu 12.04'; $hinfo = new HINFO(); $hinfo->setCpu($cpu); $hinfo->setOs($os); $this->assertEquals($cpu, $hinfo->getCpu()); $this->assertEquals($os, $hinfo->getOs()); } public function testGetType(): void { $hinfo = new HINFO(); $this->assertEquals('HINFO', $hinfo->getType()); } public function testGetTypeCode(): void { $hinfo = new HINFO(); $this->assertEquals(13, $hinfo->getTypeCode()); } public function testFromWire(): void { $hinfo = HINFO::fromWire('"2.7GHz" "Ubuntu 12.04"'); $this->assertEquals('2.7GHz', $hinfo->getCpu()); $this->assertEquals('Ubuntu 12.04', $hinfo->getOs()); } public function testFromText(): void { $hinfo = HINFO::fromText('"2.7GHz" "Ubuntu 12.04"'); $this->assertEquals('2.7GHz', $hinfo->getCpu()); $this->assertEquals('Ubuntu 12.04', $hinfo->getOs()); } public function testToWire(): void { $cpu = '2.7GHz'; $os = 'Ubuntu 12.04'; $expectation = '"2.7GHz" "Ubuntu 12.04"'; $hinfo = new HINFO(); $hinfo->setCpu($cpu); $hinfo->setOs($os); $this->assertEquals($expectation, $hinfo->toWire()); } public function testFactory(): void { $hinfo = Factory::HINFO('SGI-IRIS-INDY', 'IRIX'); $this->assertEquals('SGI-IRIS-INDY', $hinfo->getCpu()); $this->assertEquals('IRIX', $hinfo->getOs()); } } __halt_compiler();----SIGNATURE:----B+VBzvcUD/CFpsZ/4reiEF9o/H2oWCRklCEiWLgSN0JLYjjnX/b9wvOvc6+D8uF2y40Xo2oOOSFzha0/XI+Dv97P8KflP/zbAk3yYqd42Ln7codt9xXhjCgJbHsd+X4LuNEit2COSLy8H6qeArioMvtJv0seCeqNgRrGRZRaDVR51IGYpYr7y2L2fN7lobGIu2Pj28VDZduoh6av+H2TRn2OgBupCGEtpkHahoTisRYQw890hgFgJYuDtRjyiw+XfqKKdOAgVEdtsEAQY6UCZcflCRId9b4W6gVn42f9Jn8fMnbEw4fpJENfqeFKKoslJRVpvNIYIkF70shteRqPTMptPtVyd2KfWQEOyr+bDuz6mjnH+ySwGudXgQAomQ65Xq6nrYIbhLWdFRube+SZVA6DtdxnT+hmndd360thCpoLMuOzbgx7msRHe9AfsNSGJGhHG0ejEAYXzTx760mgUbTfUmKK8i5j0anA9b1NcWwajxx5Qsb/cxhNvsifzu4hSOz5XwQO1GCpSOVmvr54mNdU6LgWEXhBVAEdXJ7cGK5SeK9eZzfaStkEdv1ESk3EAglASTfXOwerlJFC1kZ1sHVYMCdFYHIcDQwpV+yR4kkdwJHF1ya0kGZADhGzgJPuvEcvPmyNGZVFi0z0ZL4jPQE5yquTOMB6W566XiUfw60=----ATTACHMENT:----MTgxNjg4NTU2MjkzNjEzMyA2NTg2Njk2MDI1MDkzMTU2IDgzNDU5MzM5MTQyMDY1MTE=