-
-
Notifications
You must be signed in to change notification settings - Fork 178
Expand file tree
/
Copy pathphpunit.bootstrap.php
More file actions
19 lines (13 loc) · 767 Bytes
/
phpunit.bootstrap.php
File metadata and controls
19 lines (13 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
declare(strict_types=1);
require __DIR__.'/vendor/autoload.php';
$kernel = new \Bolt\Kernel('test', true);
$kernel->boot();
$application = new \Symfony\Bundle\FrameworkBundle\Console\Application($kernel);
$application->setAutoExit(false);
$application->setCatchExceptions(false);
$application->run(new \Symfony\Component\Console\Input\StringInput('doctrine:database:drop --force --quiet'));
$application->run(new \Symfony\Component\Console\Input\StringInput('doctrine:database:create --quiet'));
$application->run(new \Symfony\Component\Console\Input\StringInput('doctrine:schema:create --quiet'));
$application->run(new \Symfony\Component\Console\Input\StringInput('doctrine:fixtures:load --no-interaction --group=without-images'));
$kernel->shutdown();