1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-22 13:12:41 +00:00

Style fixes

This commit is contained in:
J. King 2021-07-05 21:47:44 -04:00
parent b8ac646d22
commit ad32bf3340
19 changed files with 40 additions and 40 deletions

View file

@ -1,8 +1,10 @@
Version 0.9.3 (2021-??-??)
Version 0.10.0 (2021-??-??)
==========================
New features:
- Complete UNIX manual page
- Support for running service as a forking daemon
- Respond to TERM and HUP signals when possible
Version 0.9.2 (2021-05-25)
==========================

View file

@ -34,6 +34,9 @@
"require-dev": {
"bamarni/composer-bin-plugin": "*"
},
"suggest": {
"ext-pcntl": "To respond to signals, particular to reload configuration via SIGHUP"
},
"config": {
"platform": {
"php": "7.1.33"

View file

@ -44,10 +44,12 @@ class Service {
if ($this->loop) {
do {
sleep((int) max(0, $t->getTimestamp() - time()));
if (function_exists("pcntl_signal_dispatch")) {
pcntl_signal_dispatch();
if ($this->reload) {
$this->reload();
}
}
} while ($this->loop && $t->getTimestamp() > time());
}
// @codeCoverageIgnoreEnd

View file

@ -11,7 +11,6 @@ use JKingWeb\Arsse\Database;
use JKingWeb\Arsse\Test\Result;
use JKingWeb\Arsse\ImportExport\OPML;
use JKingWeb\Arsse\ImportExport\Exception;
use ReflectionMethod;
/** @covers \JKingWeb\Arsse\ImportExport\OPML<extended> */
class TestOPML extends \JKingWeb\Arsse\Test\AbstractTest {

View file

@ -12,7 +12,6 @@ use JKingWeb\Arsse\Test\Result;
/** @covers \JKingWeb\Arsse\Misc\ValueInfo */
class TestValueInfo extends \JKingWeb\Arsse\Test\AbstractTest {
public function testGetIntegerInfo(): void {
$tests = [
[null, I::NULL],

View file

@ -15,7 +15,6 @@ use JKingWeb\Arsse\Db\ExceptionInput;
use JKingWeb\Arsse\Db\Transaction;
use JKingWeb\Arsse\REST\Fever\API;
use Psr\Http\Message\ResponseInterface;
use Laminas\Diactoros\ServerRequest;
use Laminas\Diactoros\Response\JsonResponse;
use Laminas\Diactoros\Response\XmlResponse;
use Laminas\Diactoros\Response\EmptyResponse;

View file

@ -306,7 +306,7 @@ class TestREST extends \JKingWeb\Arsse\Test\AbstractTest {
if ($called) {
$rMock->authenticateRequest->called();
$hMock->dispatch->once()->called();
$in = $hMock->dispatch->firstCall()->argument();;
$in = $hMock->dispatch->firstCall()->argument();
$this->assertSame($method, $in->getMethod());
$this->assertSame($target, $in->getRequestTarget());
} else {

View file

@ -1356,7 +1356,6 @@ LONG_STRING;
];
}
/** @dataProvider provideArticleChanges */
public function testChangeArticles(array $in, ResponseInterface $exp): void {
$in = array_merge(['op' => "updateArticle", 'sid' => "PriestsOfSyrinx"], $in);

View file

@ -23,7 +23,6 @@ class TestService extends \JKingWeb\Arsse\Test\AbstractTest {
$this->srv = new Service();
}
public function testCheckIn(): void {
$now = time();
$this->srv->checkIn();

View file

@ -37,7 +37,6 @@ abstract class AbstractTest extends \PHPUnit\Framework\TestCase {
protected $dbMock;
protected $userMock;
public function setUp(): void {
self::clearData();
// create the object factory as a mock
@ -155,7 +154,6 @@ abstract class AbstractTest extends \PHPUnit\Framework\TestCase {
} else {
parent::assertFileNotExists($filename, $message);
}
}
public function assertException($msg = "", string $prefix = "", string $type = "Exception"): void {