opensupports/server/tests/__mocks__/RedBeanMock.php

19 lines
475 B
PHP
Raw Normal View History

<?php
namespace RedBeanPHP {
include_once 'tests/__mocks__/BeanMock.php';
class Facade extends \Mock {
public static $functionList = array();
public static function initStubs() {
self::setStatics(array(
'trash' => parent::stub(),
'store' => parent::stub(),
2018-11-16 23:34:07 +01:00
'exec' => parent::stub(),
'dispense' => parent::stub()->returns(new \BeanMock())
));
}
}
}