PHP code example of mb4it / bitrix-core-test

1. Go to this page and download the library: Download mb4it/bitrix-core-test library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mb4it / bitrix-core-test example snippets




declare(strict_types=1);

logBootstrap;
use MB\BitrixTest\Install\InstalledCore;

$corePath = InstalledCore::path();

PrologBootstrap::reset();
PrologBootstrap::boot([
    'core_path' => $corePath,
    'runtime_root' => __DIR__ . '/.runtime/integration',
    'sqlite' => true,
    'sqlite_mode' => 'base', // base | shop
]);
xml
<phpunit bootstrap="tests/bootstrap.php">