public function testSubmitCreate() { $pdu = new Submit(); $pdu->setAddress("79025449307"); $pdu->setData(self::$message); $parts = $pdu->getParts(); $this->assertNotNull($parts); $this->assertCount(3, $parts); foreach ($parts as $part) { $this->assertTrue($part instanceof PDU\Data\Part); self::$lines[] = (string) $part; } $this->assertTrue($pdu->getAddress()->getPhone() == '79025449307'); }