setUp() публичный статический Метод

public static setUp ( $type = HookMock::TRUE_HOOKS )
Пример #1
0
 public static function assertFilesEqualDatabase()
 {
     HookMock::setUp(HookMock::TRUE_HOOKS);
     self::staticInitialization();
     $entityNames = self::$schemaInfo->getAllEntityNames();
     foreach ($entityNames as $entityName) {
         self::assertEntitiesEqualDatabase($entityName);
     }
     self::clearGlobalVariables();
     HookMock::tearDown();
 }
use Composer\Autoload\ClassLoader;
use VersionPress\Storages\Mirror;
use VersionPress\Storages\StorageFactory;
use VersionPress\Tests\Utils\HookMock;
$opts = ['from:', 'to:'];
$args = getopt('', $opts);
if (count($args) < count($opts)) {
    die("Please specify all arguments\n");
}
require_once __DIR__ . '/../../vendor/autoload.php';
\Tracy\Debugger::enable(\Tracy\Debugger::DEVELOPMENT, __DIR__);
$classloader = new ClassLoader();
$classloader->addPsr4('VersionPress\\', __DIR__ . '/../../src');
$classloader->register();
HookMock::setUp(HookMock::TRUE_HOOKS);
// @codingStandardsIgnoreLine
class FooChangeInfo extends \VersionPress\ChangeInfos\TrackedChangeInfo
{
    private $files;
    public function __construct($files)
    {
        $this->files = $files;
    }
    public function getChangeDescription()
    {
        return join("\n", $this->files);
    }
    public function getScope()
    {
        return "file";
 protected function setUp()
 {
     $this->root = vfsStream::setup();
     HookMock::setUp();
 }
Пример #4
0
 protected function setUp()
 {
     HookMock::setUp();
 }
 public static function setUpBeforeClass()
 {
     HookMock::setUp(HookMock::WP_MOCK);
     self::$dbSchemaInfo = new DbSchemaInfo([__DIR__ . '/../../.versionpress/schema.yml'], 'wp_', PHP_INT_MAX);
 }
Пример #6
0
 protected function setUp()
 {
     HookMock::setUp(HookMock::WP_MOCK);
 }