Improve tests

This commit is contained in:
Daniil Gentili 2019-12-30 00:04:06 +00:00
parent e46e707702
commit a3150540d7
2 changed files with 3 additions and 2 deletions

View File

@ -418,7 +418,7 @@ trait Files
*/ */
private $offset = 0; private $offset = 0;
/** /**
* Callback * Callback.
* *
* @var ?callable * @var ?callable
*/ */

View File

@ -114,6 +114,7 @@ export MTPROTO_SETTINGS='{"logger":{"logger_level":5}}'
php tools/makephar.php $HOME/phar5 "madeline$php$branch.phar" $TRAVIS_COMMIT php tools/makephar.php $HOME/phar5 "madeline$php$branch.phar" $TRAVIS_COMMIT
cp tests/testing.php tests/testingBackup.php cp tests/testing.php tests/testingBackup.php
set +e
tests/testing.php <<EOF tests/testing.php <<EOF
m m
$API_ID $API_ID
@ -126,7 +127,7 @@ n
EOF EOF
export TRAVIS_PHAR="madeline$php$branch.phar" export TRAVIS_PHAR="madeline$php$branch.phar"
cat tests/testing.php set -e
tests/testing.php tests/testing.php
cp tests/testingBackup.php tests/testing.php cp tests/testingBackup.php tests/testing.php