AthensFramework/encryption

View on GitHub
test/mock/MockEncryptionBehavior.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Athens\Encryption\Test\Mock;

use Athens\Encryption\EncryptionBehavior;

class MockEncryptionBehavior extends EncryptionBehavior
{
    protected $table;
    protected $parameters;

    public function __construct($columns, $parameters)
    {
        $this->parameters = $parameters;
        $this->table = new MockTable($columns);
        parent::__construct();
    }

    public function getTable()
    {
        return $this->table;
    }
}