Skip to content

Commit d83d411

Browse files
committed
fixing tests for environment, it should use gethostname
1 parent d1a4a38 commit d83d411

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/PHPRocks/EnvironmentTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function testCliDomain(){
6262
);
6363

6464
$this->assertSame('cmd', $environment->protocol());
65-
$this->assertSame('cli', $environment->domain());
65+
$this->assertSame(gethostname(), $environment->domain());
6666
}
6767

6868
public function testNotDomain(){
@@ -106,7 +106,7 @@ public function testCLI(){
106106
);
107107

108108
$this->assertSame('cmd', $environment->protocol());
109-
$this->assertSame('lili.com', $environment->domain());
109+
$this->assertSame(gethostname(), $environment->domain());
110110
}
111111

112112
public function testAll(){

0 commit comments

Comments
 (0)