summaryrefslogtreecommitdiffstats
path: root/tests/Psecio/Gatekeeper/Base.php
blob: c0f35812880d015992cf5eaa38406c842683ab01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php

namespace Psecio\Gatekeeper;

class Base extends \PHPUnit_Framework_TestCase
{
    public function buildMock($return, $type = 'find')
    {
        $ds = $this->getMockBuilder('\Psecio\Gatekeeper\DataSource\Stub')
            ->setConstructorArgs(array(array()))
            ->getMock();
        $ds->method($type)
            ->willReturn($return);

        return $ds;
    }
}