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