コード例 #1
0
ファイル: EntityTest.php プロジェクト: carriercomm/pastebin-2
 public function testBinaryIp()
 {
     $binaryIp = inet_pton('127.0.0.1');
     $paste = new Paste();
     $paste->setIp('127.0.0.1');
     $this->assertEquals($binaryIp, $paste->getBinaryIp());
     $paste = null;
     $paste = new Paste();
     $paste->setBinaryIp($binaryIp);
     $this->assertEquals('127.0.0.1', $paste->getIp());
 }