for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of Badcow DNS Library.
*
* (c) Samuel Williams <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Badcow\DNS\Tests\Rdata;
use Badcow\DNS\Rdata\A;
class ARdataTest extends \PHPUnit\Framework\TestCase
{
/**
* @var A
private $aRdata;
public function setUp()
$this->aRdata = new A();
}
public function testGetType()
$this->assertEquals('A', $this->aRdata->getType());
public function testSetAddress()
$address = '192.168.1.1';
$this->aRdata->setAddress($address);
$this->assertEquals($address, $this->aRdata->getAddress());
public function testOutput()
$this->assertEquals($address, $this->aRdata->output());