setUp() public static method

public static setUp ( $type = HookMock::TRUE_HOOKS )
Ejemplo n.º 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";
Ejemplo n.º 3
0
 protected function setUp()
 {
     $this->root = vfsStream::setup();
     HookMock::setUp();
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 6
0
 protected function setUp()
 {
     HookMock::setUp(HookMock::WP_MOCK);
 }