<?php
/**
 * DetailedCountryTest
 *
 * PHP version 7.3
 *
 * @category Class
 * @package  FattureInCloud
 * @author   Fatture In Cloud API team
 * @link     https://fattureincloud.it
 */

/**
 * Fatture in Cloud API v2 - API Reference
 *
 * Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 400.000 businesses in Italy.   The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
 *
 * The version of the OpenAPI document: 2.0.14
 * Contact: info@fattureincloud.it
 * Generated by: https://openapi-generator.tech
 * OpenAPI Generator version: 5.4.0
 */

/**
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Please update the test case below to test the model.
 */

namespace FattureInCloud\Test\Model;

use PHPUnit\Framework\TestCase;
use \FattureInCloud\ObjectSerializer;

/**
 * DetailedCountryTest Class Doc Comment
 *
 * @category    Class
 * @description DetailedCountry
 * @package     FattureInCloud
 * @author   Fatture In Cloud API team
 * @link     https://fattureincloud.it
 */
class DetailedCountryTest extends TestCase
{
    public $array = [];
    public $object;

    /**
     * Setup before running any test case
     */
    public static function setUpBeforeClass(): void
    {
    }

    /**
     * Setup before running each test case
     */
    public function setUp(): void
    {
        $json = '{
            "name": "Italia",
            "settings_name": "Italia",
            "iso": "IT",
            "fiscal_iso": "IT",
            "uic": "086"
          }';

        $this->array = json_decode($json, true);

        $this->object = ObjectSerializer::deserialize($json, '\FattureInCloud\Model\DetailedCountry');
    }

    /**
     * Clean up after running each test case
     */
    public function tearDown(): void
    {
    }

    /**
     * Clean up after running all test cases
     */
    public static function tearDownAfterClass(): void
    {
    }

    /**
     * Test "DetailedCountry"
     */
    public function testDetailedCountry()
    {
        foreach ($this->array as $key => $value) {
            Testcase::assertArrayHasKey($key, $this->object);
        }
    }

    /**
     * Test attribute "name"
     */
    public function testPropertyName()
    {
        TestCase::assertEquals($this->object['name'], $this->array['name']);
    }

    /**
     * Test attribute "settings_name"
     */
    public function testPropertySettingsName()
    {
        TestCase::assertEquals($this->object['settings_name'], $this->array['settings_name']);
    }

    /**
     * Test attribute "iso"
     */
    public function testPropertyIso()
    {
        TestCase::assertEquals($this->object['iso'], $this->array['iso']);
    }

    /**
     * Test attribute "fiscal_iso"
     */
    public function testPropertyFiscalIso()
    {
        TestCase::assertEquals($this->object['fiscal_iso'], $this->array['fiscal_iso']);
    }

    /**
     * Test attribute "uic"
     */
    public function testPropertyUic()
    {
        TestCase::assertEquals($this->object['uic'], $this->array['uic']);
    }
}
