%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/news/vendor/namshi/jose/tests/Namshi/JOSE/Test/Signer/OpenSSL/
Upload File :
Create Path :
Current File : /var/www/html/news/vendor/namshi/jose/tests/Namshi/JOSE/Test/Signer/OpenSSL/NoneTest.php

<?php

namespace Namshi\JOSE\Test\OpenSSL\Signer;

use \PHPUnit_Framework_TestCase as TestCase;
use Namshi\JOSE\Signer\OpenSSL\None;

class noneTest extends TestCase
{
    public function testVerificationWorksProperly()
    {
        $signer = new none;

        $this->assertTrue($signer->verify('bar', '', 'aaa'));
    }

    public function testSigningWorksProperly()
    {
        $signer = new none;
        $signature = $signer->sign('aaa', 'foo');

        $this->assertTrue($signature === '');
    }
}

Zerion Mini Shell 1.0