for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Tests\Classes;
use PHPUnit\Framework\TestCase;
class AuthenticationTest extends TestCase
{
public function testCreateAndSetAuthentication()
$auth = new \Ipag\Classes\Authentication('[email protected]', '123456');
$auth->setPartner('[email protected]');
$this->assertEquals($auth->getIdentification(), '[email protected]');
$this->assertEquals($auth->getApiKey(), '123456');
$this->assertEquals($auth->getPartner(), '[email protected]');
$auth->setIdentification('[email protected]')
->setApiKey('654321');
$this->assertEquals($auth->getApiKey(), '654321');
}