Inheritance: extends Divisible
Ejemplo n.º 1
0
 /**
  * @test
  */
 public function city_can_get_a_parent()
 {
     $city = City::build(2761369);
     $state = $city->parent();
     $this->assertInstanceOf(State::class, $state);
 }
Ejemplo n.º 2
0
 /**
  * @test
  */
 public function city_can_be_instantiated_based_on_code()
 {
     $city = City::build(2761369);
     $this->assertInstanceOf(City::class, $city);
     $this->assertNotEmpty($city->getName());
 }