assertEquals( 'localhost', $this->localhost()->getHostname() ); } public function testReturnsCorrectIdentifierWhenCastedToString() { $this->assertEquals( 'localhost;Hoststatus', (string) $this->localhost() ); } public function testReturnsCorrectAlias() { $this->assertEquals( 'localhost', $this->localhost()->getAlias() ); } public function testRendersCorrectLink() { $this->assertEquals( '' . 'localhost', $this->localhost()->renderLink(new View()) ); } /** * @return HostNode */ protected function localhost() { $bp = new BusinessProcess(); return new HostNode($bp, (object) array( 'hostname' => 'localhost', 'state' => 0, )); } }