Martin Monperrus
10 months ago
No known key found for this signature in database
GPG Key ID: 7D398AD45AEEEC93
3 changed files with
16 additions and
1 deletions
-
BibtexbrowserTest.php
-
README.wiki
-
bibtexbrowser.php
|
@ -1,3 +1,4 @@ |
|
|
|
|
|
#!/usr/bin/env phpunit
|
|
|
<?php |
|
|
<?php |
|
|
/** PhPUnit tests for bibtexbrowser |
|
|
/** PhPUnit tests for bibtexbrowser |
|
|
|
|
|
|
|
|
|
@ -588,6 +588,18 @@ Bibtexbrowser can generate [[https://en.wikipedia.org/wiki/COinS|Coins]], Google |
|
|
?> |
|
|
?> |
|
|
</pre> |
|
|
</pre> |
|
|
|
|
|
|
|
|
|
|
|
====How to run the test for another PHP version?==== |
|
|
|
|
|
|
|
|
|
|
|
Find the right image on Docker, eg ''8.3.11-cli-alpine'', and create `container/Dockerfile` |
|
|
|
|
|
<pre> |
|
|
|
|
|
FROM php:8.3.11-cli-alpine |
|
|
|
|
|
RUN apk add phpunit |
|
|
|
|
|
WORKDIR /tmp |
|
|
|
|
|
CMD [ "phpunit"] |
|
|
|
|
|
</pre> |
|
|
|
|
|
|
|
|
|
|
|
Then, ''docker build container'', and ''docker run -v /path/to/bibtexbrowser.dir:/tmp -ti 4f3591b79a60 /tmp/BibtexbrowserTest.php'' |
|
|
|
|
|
|
|
|
=====Related tools===== |
|
|
=====Related tools===== |
|
|
|
|
|
|
|
|
Old-fashioned: |
|
|
Old-fashioned: |
|
|
|
@ -4433,7 +4433,9 @@ usage: |
|
|
class PagedDisplay { |
|
|
class PagedDisplay { |
|
|
|
|
|
|
|
|
var $query = array(); |
|
|
var $query = array(); |
|
|
|
|
|
|
|
|
|
|
|
var $page = 1; |
|
|
|
|
|
var $entries = array(); |
|
|
|
|
|
|
|
|
function __construct() { |
|
|
function __construct() { |
|
|
$this->setPage(); |
|
|
$this->setPage(); |
|
|
} |
|
|
} |
|
|