예제 #1
0
 public function testRouteCouldBeDuplicated()
 {
     $route = Route::create('my first trip');
     $routeDuplicated = $route->duplicate();
     $comparison = $route === $routeDuplicated;
     $this->assertFalse($comparison);
 }
예제 #2
0
 public static function createWithFirstRoute(TripIdentity $identity, $name)
 {
     $trip = new self($identity, $name);
     $trip->routes->add(Route::create($trip->name));
     return $trip;
 }