コード例 #1
0
 /**
  * @test
  * @since  1.3.0
  */
 public function mergeMergesTwoPropertiesInstancesAndReturnsNewInstance()
 {
     $properties1 = new Properties(['foo' => ['bar' => 'baz']]);
     $properties2 = new Properties(['bar' => ['bar' => 'baz']]);
     $resultProperties = $properties1->merge($properties2);
     assert($resultProperties, isNotSameAs($properties1)->and(isNotSameAs($properties2)));
 }
コード例 #2
0
ファイル: UriTest.php プロジェクト: stubbles/stubbles-peer
 /**
  * @test
  * @since  5.5.0
  */
 public function withPathReturnsNewInstance()
 {
     $uri = Uri::fromString('http://example.org/foo');
     assert($uri->withPath('/bar'), isNotSameAs($uri));
 }