MOON
Server: Apache
System: Linux server1.studioinfinity.com.br 2.6.32-954.3.5.lve1.4.90.el6.x86_64 #1 SMP Tue Feb 21 12:26:30 UTC 2023 x86_64
User: artinside (517)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/artinside/www/lhh/vendor/frenet/frenet-php/dev/test/unit/Frenet/ApiTest.php
<?php

declare(strict_types = 1);

namespace FrenetTest;

/**
 * Class ApiTest
 * @package FrenetTest
 */
class ApiTest extends TestCase
{
    /**
     * @var \Frenet\ApiInterface
     */
    private $api;
    
    protected function setUp()
    {
        $this->api = \Frenet\ApiFactory::create('someToken', ['test' => 'Test']);
    }
    
    /**
     * @test
     */
    public function postcode()
    {
        $this->assertInstanceOf(\Frenet\Command\PostcodeInterface::class, $this->api->postcode());
    }
    
    /**
     * @test
     */
    public function shipping()
    {
        $this->assertInstanceOf(\Frenet\Command\ShippingInterface::class, $this->api->shipping());
    }
    
    /**
     * @test
     */
    public function tracking()
    {
        $this->assertInstanceOf(\Frenet\Command\TrackingInterface::class, $this->api->tracking());
    }
}