|
@@ 56-66 (lines=11) @@
|
| 53 |
|
$this->assertEquals('test', $this->fixture->getHost());
|
| 54 |
|
}
|
| 55 |
|
|
| 56 |
|
public function testHostIsNull()
|
| 57 |
|
{
|
| 58 |
|
$this->fixture->setHost(true);
|
| 59 |
|
$this->assertNull($this->fixture->getHost());
|
| 60 |
|
|
| 61 |
|
$this->fixture->setHost(1);
|
| 62 |
|
$this->assertNull($this->fixture->getHost());
|
| 63 |
|
|
| 64 |
|
$this->fixture->setHost(array(1, 2));
|
| 65 |
|
$this->assertNull($this->fixture->getHost());
|
| 66 |
|
}
|
| 67 |
|
|
| 68 |
|
public function testSetServerNameFromHost()
|
| 69 |
|
{
|
|
@@ 77-87 (lines=11) @@
|
| 74 |
|
$this->assertEquals('test', $this->fixture->getServerName());
|
| 75 |
|
}
|
| 76 |
|
|
| 77 |
|
public function testServerNameFromHostIsNull()
|
| 78 |
|
{
|
| 79 |
|
$this->fixture->setServerNameFromHost(true);
|
| 80 |
|
$this->assertNull($this->fixture->getServerName());
|
| 81 |
|
|
| 82 |
|
$this->fixture->setServerNameFromHost(1);
|
| 83 |
|
$this->assertNull($this->fixture->getServerName());
|
| 84 |
|
|
| 85 |
|
$this->fixture->setServerNameFromHost(array(1, 2));
|
| 86 |
|
$this->assertNull($this->fixture->getServerName());
|
| 87 |
|
}
|
| 88 |
|
}
|
| 89 |
|
|