Skip to content
This repository has been archived by the owner on Feb 19, 2025. It is now read-only.

Commit

Permalink
Renamed ShaSumEncoder to Sha1SumEncoder
Browse files Browse the repository at this point in the history
  • Loading branch information
asgrim committed Jan 27, 2017
1 parent ec5e140 commit 5f40a51
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Roave\Signature\Encoder;

final class ShaSumEncoder implements EncoderInterface
final class Sha1SumEncoder implements EncoderInterface
{
/**
* {@inheritDoc}
Expand Down
25 changes: 25 additions & 0 deletions test/unit/src/Encoder/Sha1SumEncoderTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

declare(strict_types=1);

namespace Roave\SignatureTest\Encoder;

use Roave\Signature\Encoder\Sha1SumEncoder;

/**
* @covers \Roave\Signature\Encoder\Sha1SumEncoder
*/
final class Sha1SumEncoderTest extends \PHPUnit_Framework_TestCase
{
public function testEncode()
{
$value = uniqid('values', true);
self::assertSame(sha1($value), (new Sha1SumEncoder())->encode($value));
}

public function testVerify()
{
$value = uniqid('values', true);
self::assertTrue((new Sha1SumEncoder())->verify($value, sha1($value)));
}
}
25 changes: 0 additions & 25 deletions test/unit/src/Encoder/ShaSumEncoderTest.php

This file was deleted.

0 comments on commit 5f40a51

Please # to comment.