diff --git a/BibtexbrowserTest.php b/BibtexbrowserTest.php index f0a59a1..591ef46 100755 --- a/BibtexbrowserTest.php +++ b/BibtexbrowserTest.php @@ -1,3 +1,4 @@ +#!/usr/bin/env phpunit +====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` +
+FROM php:8.3.11-cli-alpine +RUN apk add phpunit +WORKDIR /tmp +CMD [ "phpunit"] ++ +Then, ''docker build container'', and ''docker run -v /path/to/bibtexbrowser.dir:/tmp -ti 4f3591b79a60 /tmp/BibtexbrowserTest.php'' + =====Related tools===== Old-fashioned: diff --git a/bibtexbrowser.php b/bibtexbrowser.php index 115c884..61f09d1 100755 --- a/bibtexbrowser.php +++ b/bibtexbrowser.php @@ -4433,7 +4433,9 @@ usage: class PagedDisplay { var $query = array(); - + var $page = 1; + var $entries = array(); + function __construct() { $this->setPage(); }