More reformatting

This commit is contained in:
Stéphane Goetz
2020-04-22 22:24:52 +02:00
parent 9c13185620
commit 8cf6a7667b
73 changed files with 362 additions and 421 deletions

View File

@ -1,12 +1,12 @@
<?php namespace Todaymade\Daux\Server;
use org\bovigo\vfs\vfsStream;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Console\Output\NullOutput;
use Symfony\Component\HttpFoundation\Request;
use Todaymade\Daux\Format\HTML\RawPage;
use Todaymade\Daux\ConfigBuilder;
use Todaymade\Daux\Daux;
use org\bovigo\vfs\vfsStream;
use Todaymade\Daux\Format\HTML\RawPage;
class ServerTest extends TestCase
{
@ -16,11 +16,10 @@ class ServerTest extends TestCase
'index.md' => 'first page',
'Page.md' => 'another page',
'somefile.css' => 'body {}',
'22.png' => ''
'22.png' => '',
];
$root = vfsStream::setup('root', null, $structure);
$config = ConfigBuilder::withMode(Daux::LIVE_MODE)
->withDocumentationDirectory($root->url())
->build();
@ -34,6 +33,6 @@ class ServerTest extends TestCase
$server = new Server($daux);
$response = $server->createResponse($page)->prepare(Request::createFromGlobals());
$this->assertEquals("text/css", $response->headers->get('Content-Type'));
$this->assertEquals('text/css', $response->headers->get('Content-Type'));
}
}