1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-23 05:44:53 +00:00
This commit is contained in:
J. King 2017-12-22 11:51:58 -05:00
parent a5318d1b12
commit 39cad91b78
9 changed files with 8 additions and 9 deletions

View file

@ -13,7 +13,7 @@ abstract class AbstractDriver implements Driver {
protected $transDepth = 0; protected $transDepth = 0;
protected $transStatus = []; protected $transStatus = [];
protected abstract function getError(): string; abstract protected function getError(): string;
/** @codeCoverageIgnore */ /** @codeCoverageIgnore */
public function schemaVersion(): int { public function schemaVersion(): int {

View file

@ -28,9 +28,11 @@ trait PDOError {
default: default:
return [Exception::class, "engineErrorGeneral", $err[1]." - ".$err[2]]; return [Exception::class, "engineErrorGeneral", $err[1]." - ".$err[2]];
} }
// no break
default: default:
return [Exception::class, "engineErrorGeneral", $err[2]]; // @codeCoverageIgnore return [Exception::class, "engineErrorGeneral", $err[2]]; // @codeCoverageIgnore
} }
// no break
default: default:
return [Exception::class, "engineErrorGeneral", $err[0].": ".$err[2]]; // @codeCoverageIgnore return [Exception::class, "engineErrorGeneral", $err[0].": ".$err[2]]; // @codeCoverageIgnore
} }

View file

@ -14,7 +14,6 @@ use JKingWeb\Arsse\Db\SQLite3\PDODriver;
* @covers \JKingWeb\Arsse\Db\PDOStatement<extended> * @covers \JKingWeb\Arsse\Db\PDOStatement<extended>
* @covers \JKingWeb\Arsse\Db\PDOError */ * @covers \JKingWeb\Arsse\Db\PDOError */
class TestStatement extends \JKingWeb\Arsse\Test\AbstractTest { class TestStatement extends \JKingWeb\Arsse\Test\AbstractTest {
protected $c; protected $c;
protected static $imp = \JKingWeb\Arsse\Db\PDOStatement::class; protected static $imp = \JKingWeb\Arsse\Db\PDOStatement::class;

View file

@ -9,7 +9,6 @@ namespace JKingWeb\Arsse\TestCase\Lang;
use JKingWeb\Arsse\Lang as TestClass; use JKingWeb\Arsse\Lang as TestClass;
use org\bovigo\vfs\vfsStream; use org\bovigo\vfs\vfsStream;
/** @covers \JKingWeb\Arsse\Lang */ /** @covers \JKingWeb\Arsse\Lang */
class TestBasic extends \JKingWeb\Arsse\Test\AbstractTest { class TestBasic extends \JKingWeb\Arsse\Test\AbstractTest {
use \JKingWeb\Arsse\Test\Lang\Setup; use \JKingWeb\Arsse\Test\Lang\Setup;

View file

@ -6,7 +6,6 @@
declare(strict_types=1); declare(strict_types=1);
namespace JKingWeb\Arsse\TestCase\User; namespace JKingWeb\Arsse\TestCase\User;
use JKingWeb\Arsse\Arsse; use JKingWeb\Arsse\Arsse;
use JKingWeb\Arsse\Conf; use JKingWeb\Arsse\Conf;
use JKingWeb\Arsse\User; use JKingWeb\Arsse\User;