| @@ 26-33 (lines=8) @@ | ||
| 23 | /** |
|
| 24 | * @test |
|
| 25 | */ |
|
| 26 | public function it_has_list_of_legs() |
|
| 27 | { |
|
| 28 | $legs = [LegFixture::get(LegFixture::HONGKONG_NEWYORK), LegFixture::get(LegFixture::NEWYORK_HAMBURG)]; |
|
| 29 | ||
| 30 | $itinerary = new Itinerary($legs); |
|
| 31 | ||
| 32 | $this->assertSame($legs, $itinerary->legs()); |
|
| 33 | } |
|
| 34 | ||
| 35 | /** |
|
| 36 | * @test |
|
| @@ 38-46 (lines=9) @@ | ||
| 35 | /** |
|
| 36 | * @test |
|
| 37 | */ |
|
| 38 | public function it_is_same_value_as_itinerary_with_same_legs() |
|
| 39 | { |
|
| 40 | $legs = [LegFixture::get(LegFixture::HONGKONG_NEWYORK), LegFixture::get(LegFixture::NEWYORK_HAMBURG)]; |
|
| 41 | ||
| 42 | $itinerary = new Itinerary($legs); |
|
| 43 | $sameItinerary = new Itinerary($legs); |
|
| 44 | ||
| 45 | $this->assertTrue($itinerary->sameValueAs($sameItinerary)); |
|
| 46 | } |
|
| 47 | ||
| 48 | /** |
|
| 49 | * @test |
|