Commit af12eb96 authored by samuelwilliams's avatar samuelwilliams
Browse files

Removed validator from ResourceRecord::setName

parent d9afdae8
......@@ -92,10 +92,6 @@ class ResourceRecord implements ResourceRecordInterface
*/
public function setName($name)
{
if (!Validator::rrName($name)) {
throw new DNSException(sprintf('"%s" is not a valid resource record name.', $name));
}
$this->name = (string) $name;
}
......
......@@ -29,15 +29,8 @@ class ResourceRecordTest extends TestCase
}
/**
* @expectedException \Badcow\DNS\DNSException
* @expectedExceptionMessage "example?record.com." is not a valid resource record name.
* Tests the getter and setter methods
*/
public function testSetName()
{
$rr = new ResourceRecord();
$rr->setName('example?record.com.');
}
public function testSettersAndGetters()
{
$rr = new ResourceRecord();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment