markdown-resume/tests/bootstrap.php

26 lines
687 B
PHP
Raw Normal View History

<?php
$app = require __DIR__ . '/../vendor/autoload.php';
$app->add('Resume', __DIR__ . '/../src');
2017-10-16 19:00:50 -04:00
use PHPUnit\Framework\TestCase;
use Resume\Cli\Resume;
2017-10-16 19:00:50 -04:00
class ResumeTest extends TestCase
{
public $console;
public function setUp()
{
$templatePath = realpath(__DIR__ . '/../templates/');
$consoleTemplatePath = realpath(__DIR__ . '/../src/Resume/Templates');
$project = json_decode(file_get_contents(__DIR__ . '/../composer.json'));
$project->version = 0;
$this->console = new Resume();
$this->console->initialize($templatePath, $consoleTemplatePath, $project);
}
}
/* End file bootstrap.php */