Skip to content

Commit

Permalink
Remove duplicate message about server address (#179)
Browse files Browse the repository at this point in the history
* Remove duplicate message about server address

* Fix tests, add changelog
  • Loading branch information
samdark committed Apr 15, 2023
1 parent bd056db commit 7b87314
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 18 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Expand Up @@ -2,7 +2,7 @@

## 2.0.2 under development

- no changes in this release.
- Bug #179: Remove duplicate message about server address (samdark)

## 2.0.1 March 31, 2023

Expand Down
1 change: 0 additions & 1 deletion src/Command/Serve.php
Expand Up @@ -122,7 +122,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
return self::EXIT_CODE_NO_ROUTING_FILE;
}

$output->writeLn("Server started on <href=http://$address/>http://$address/</>");
$output->writeLn("Document root is \"$documentRoot\"");

if ($router) {
Expand Down
15 changes: 0 additions & 15 deletions tests/ServeCommandTest.php
Expand Up @@ -55,11 +55,6 @@ public function testServeCommandExecuteWithDocRoot(): void

$this->assertSame(ExitCode::OK, $commandCreate->getStatusCode());

$this->assertStringContainsString(
'Server started on http://127.0.0.1:8080/',
$output
);

$this->assertStringContainsString(
'Document root is',
$output
Expand Down Expand Up @@ -92,11 +87,6 @@ public function testServeCommandExecuteWithConfig(): void

$this->assertSame(ExitCode::OK, $commandCreate->getStatusCode());

$this->assertStringContainsString(
'Server started on http://127.0.0.2:8081/',
$output
);

$this->assertStringContainsString(
'Document root is',
$output
Expand Down Expand Up @@ -199,11 +189,6 @@ public function testSuccess(): void

$output = $commandCreate->getDisplay(true);

$this->assertStringContainsString(
'Server started on http://127.0.0.1:8080/',
$output
);

$this->assertStringContainsString(
'Routing file is "tests/public/index.php"',
$output
Expand Down
1 change: 0 additions & 1 deletion tests/TestCase.php
Expand Up @@ -32,7 +32,6 @@ protected function setUp(): void
protected function tearDown(): void
{
$this->container = null;
$this->application = null;

parent::tearDown();
}
Expand Down

0 comments on commit 7b87314

Please sign in to comment.