for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Copyright (c) 2019 - present
* updown - UpDownTest.php
* author: Roberto Belotti - [email protected]
* web : robertobelotti.com, github.com/biscolab
* Initial version created on: 15/2/2019
* MIT license: https://github.com/biscolab/updown-php/blob/master/LICENSE
*/
namespace Tests\Unit;
use Biscolab\UpDown\Http\UpDownClient;
use Biscolab\UpDown\Tests\TestCase;
use Biscolab\UpDown\UpDown;
class UpDownTest extends TestCase
{
* @test
public function testInstanceOfCheck()
$this->assertInstanceOf(UpDown::class, $this->updown);
}
public function testInstanceOfCheckFromInstanceMethod()
$this->assertInstanceOf(UpDown::class, UpDown::instance());
public function testCheckApiKey()
$this->assertEquals($_ENV['API_KEY'], $this->updown->getKey());
public function testUpDownClient()
$this->assertInstanceOf(UpDownClient::class, $this->updown->getClient());