Skip to content

Commit

Permalink
update composer.lock and FormatterTest.php
Browse files Browse the repository at this point in the history
Correction of "http://www.yiifram..." to "https://www.yiifram..."
  • Loading branch information
luizcmarin committed Apr 11, 2024
1 parent bf3ada1 commit f3138fe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions tests/framework/i18n/FormatterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public function testAsEmail()

public function testAsUrl()
{
$value = 'http://www.yiiframework.com/';
$value = 'https://www.yiiframework.com/';
$this->assertSame("<a href=\"$value\">$value</a>", $this->formatter->asUrl($value));
$this->assertSame("<a href=\"$value\">$value</a>", $this->formatter->asUrl($value, ['scheme' => null]));
$this->assertSame("<a href=\"$value\">$value</a>", $this->formatter->asUrl($value, ['scheme' => false]));
Expand All @@ -234,7 +234,7 @@ public function testAsUrl()
$this->assertSame("<a href=\"$value\">$value</a>", $this->formatter->asUrl($value, ['scheme' => false]));
$this->assertSame("<a href=\"$value\">$value</a>", $this->formatter->asUrl($value, ['scheme' => null]));
$this->assertSame(
"<a href=\"http://www.yiiframework.com/\">$value</a>",
"<a href=\"https://www.yiiframework.com/\">$value</a>",
$this->formatter->asUrl($value, ['scheme' => 'http'])
);
$this->assertSame("<a href=\"$value\">$value</a>", $this->formatter->asUrl($value, ['scheme' => 'https']));
Expand All @@ -245,12 +245,12 @@ public function testAsUrl()

$value = 'www.yiiframework.com/';
$this->assertSame(
"<a href=\"http://www.yiiframework.com/\">$value</a>",
"<a href=\"https://www.yiiframework.com/\">$value</a>",
$this->formatter->asUrl($value)
);
$this->assertSame("<a href=\"$value\">$value</a>", $this->formatter->asUrl($value, ['scheme' => false]));
$this->assertSame(
"<a href=\"http://www.yiiframework.com/\">$value</a>",
"<a href=\"https://www.yiiframework.com/\">$value</a>",
$this->formatter->asUrl($value, ['scheme' => null])
);
$this->assertSame("<a href=\"$value\">$value</a>", $this->formatter->asUrl($value, ['scheme' => 'http']));
Expand All @@ -268,7 +268,7 @@ public function testAsUrl()
$this->formatter->asUrl($value, ['scheme' => null])
);
$this->assertSame(
"<a href=\"http://www.yiiframework.com/\">$value</a>",
"<a href=\"https://www.yiiframework.com/\">$value</a>",
$this->formatter->asUrl($value, ['scheme' => 'http'])
);
$this->assertSame(
Expand Down Expand Up @@ -297,7 +297,7 @@ public function testAsUrl()
$this->formatter->asUrl($value)
);

$value = 'http://www.yiiframework.com/';
$value = 'https://www.yiiframework.com/';
$this->assertSame("<a href=\"$value\" target=\"_blank\">$value</a>",
$this->formatter->asUrl($value, ['target' => '_blank']));

Expand Down

0 comments on commit f3138fe

Please sign in to comment.