Browse Source

test: simplify server test (#90)

pull/91/head
Chris 7 years ago
committed by Martin Monperrus
parent
commit
b9e4f9376c
  1. 2
      composer.json
  2. 7
      tests/router.php

2
composer.json

@ -14,6 +14,6 @@
"php": ">=5.6" "php": ">=5.6"
}, },
"scripts": { "scripts": {
"serve": ["@php -S localhost:29896 bibtexbrowser.php"]
"serve": ["@php -S localhost:29896 ./tests/router.php"]
} }
} }

7
tests/router.php

@ -0,0 +1,7 @@
<?PHP
@define('BIBTEXBROWSER_DEFAULT_FRAME', 'all');
@define('BIBTEXBROWSER_EMBEDDED_WRAPPER', 'HTMLTemplate');
//
$_GET['bib']='bibacid-utf8.bib';
$_GET['wrapper']='BIBTEXBROWSER_EMBEDDED_WRAPPER';
require('bibtexbrowser.php');
Loading…
Cancel
Save