コード例 #1
0
ファイル: UriTest.php プロジェクト: solutionDrive/Codeception
 /**
  * @Issue https://github.com/Codeception/Codeception/pull/2841
  */
 public function testMergingPath()
 {
     $this->assertEquals('/form/?param=1#anchor', Uri::mergeUrls('/form/?param=1', '#anchor'));
     $this->assertEquals('/form/?param=1#anchor2', Uri::mergeUrls('/form/?param=1#anchor1', '#anchor2'));
     $this->assertEquals('/form/?param=2', Uri::mergeUrls('/form/?param=1#anchor', '?param=2'));
     $this->assertEquals('/page/', Uri::mergeUrls('/form/?param=1#anchor', '/page/'));
 }
コード例 #2
0
ファイル: UriTest.php プロジェクト: foxman209/Codeception
 /**
  * @Issue https://github.com/Codeception/Codeception/pull/2141
  */
 public function testMergingScheme()
 {
     $this->assertEquals('https://google.com/account/', Uri::mergeUrls('http://google.com/', 'https://google.com/account/'));
 }