assertEquals($json['error'], 'The city name is empty, please, write the name!!!'); } public function test_not_existing_city_with_name(): void { $name = '404 City'; $json = City::validate_with_name($name); $this->assertEquals($json['error'], 'A city with the name does not exist!!!'); } public function test_valid_city_with_name(): void { $name = 'testCity'; $json = City::validate_with_name($name); $this->assertEquals($json['ok'], 'A city with the name is valid.'); } }