<?php

namespace Tests;

use Mockery;
use PHPUnit\Framework\TestCase as Base;

abstract class TestCase extends Base
{
    /**
     * @before
     */
    protected function setUpMockery()
    {
        Mockery::getConfiguration()->allowMockingNonExistentMethods(false);
        Mockery::getConfiguration()->allowMockingMethodsUnnecessarily(false);
    }

    /**
     * @after
     */
    protected function close_mockery()
    {
        Mockery::close();
    }
}

Configure mockery to be a little more strict
Configure mockery to be a little more strict
