Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

500 B
Raw Blame
<?php

use Symfony\Component\Process\Process;

it('loads the database helper without PHP warnings', function () {
    $process = new Process([
        PHP_BINARY,
        '-d',
        'display_errors=1',
        '-d',
        'error_reporting=E_ALL',
        '-l',
        __DIR__.'/../../bootstrap/helpers/databases.php',
    ]);

    $process->run();

    expect($process->isSuccessful())->toBeTrue()
        ->and($process->getOutput().$process->getErrorOutput())->not->toContain('Warning');
});