2014-09-01 20:51:59 +02:00
|
|
|
<?php
|
|
|
|
namespace Szurubooru\Tests;
|
|
|
|
|
|
|
|
abstract class AbstractTestCase extends \PHPUnit_Framework_TestCase
|
|
|
|
{
|
|
|
|
public function mock($className)
|
|
|
|
{
|
|
|
|
return $this->getMockBuilder($className)->disableOriginalConstructor()->getMock();
|
|
|
|
}
|
2014-09-05 20:08:54 +02:00
|
|
|
|
|
|
|
public function mockConfig()
|
|
|
|
{
|
|
|
|
return new ConfigMock();
|
|
|
|
}
|
2014-09-01 20:51:59 +02:00
|
|
|
}
|
2014-09-03 19:07:53 +02:00
|
|
|
|
|
|
|
date_default_timezone_set('UTC');
|