assertEquals('SPF', $spf->getType()); $this->assertEquals('v=spf1 ip4:192.0.2.0/24 ip4:198.51.100.123 a -all', $spf->getText()); } public function testToText(): void { $spf = new SPF(); $spf->setText('v=spf1 ip4:192.0.2.0/24 ip4:198.51.100.123 a -all'); $this->assertEquals('"v=spf1 ip4:192.0.2.0/24 ip4:198.51.100.123 a -all"', $spf->toText()); $this->assertEquals('SPF', $spf->getType()); } public function testWire(): void { $wireFormat = chr(49).'v=spf1 ip4:192.0.2.0/24 ip4:198.51.100.123 a -all'; $offset = 1; $rdLength = 49; $spf = new SPF(); $spf->setText('v=spf1 ip4:192.0.2.0/24 ip4:198.51.100.123 a -all'); $this->assertEquals($spf, SPF::fromWire($wireFormat, $offset, $rdLength)); } public function testFactory(): void { $wireFormat = 'v=spf1 ip4:192.0.2.0/24 ip4:198.51.100.123 a -all'; $spf = new SPF(); $spf->setText($wireFormat); $this->assertEquals($spf, Factory::SPF($wireFormat)); } } __halt_compiler();----SIGNATURE:----PgqxwtG4T2JJl7eOWYVGsJKdXKIgmLft41qsuyztlHAPHefyem/l5Lk8Q58Kq3JYzkpWsrtF6Kva8i5BbckCv3JoCu5qVEasKMzcoN+Q8W+VM8bkzC6VyCJM7EORmJq66aE3UTEt5UK1rG41vIEDyCyJwhpCKTDdJLTJIE7FcRM6oVxJXByYvfSwcE4/hH6td2jnmfqT1u1r/vo6CyKvJJNXaaPpzXYtkA0jGmh42qZWTHGSgVS/ctJuWniAwtXyuF4MQyasjb+jI/T0NsLMa4rqu3p8WSQ1gTV29f3WHyqlJM9AsSIeXLN+HWpPeMBu9GkktVHqTiM7vSQQseq/FWws9+K5X21fMMe952mn8H2JL9TOXpSdPVqFV4bw+PQ4cY6KQHkmwqh/mEuJPodaj2yM0lunGzJZ826XBhrGwPcGJ39TTW0fPnRD88qorqb40HxvXvjOdZcoTYQ1kLZIHAbzCsZe0VdY3gn9ISo2YpjnPUnsxGUrijuUOwBEtzPg7e/T7BOsEM5rbl3U40MH94xxVmn0/ouEUA8T7QfdNAuN4t/aAfDFGypJMrra45zdOW1DrMDIRX8BIXE3ybKl6h71UFSWc26TqHBg9/8ZuCauvij3txDHUPMumc+zn9kiNu4shFbJKe59SsDl/zKCxax0QnZRrKXoDDb912KLQWQ=----ATTACHMENT:----MjY5MzYyMjIxMTcyMzE5IDc1MDMwMDY0MzA0ODY5OTUgODAyNTM5NjMyNTUwMTExMQ==