From b5f959aabfc426cfbadf40d8fafedccc42ae9ef7 Mon Sep 17 00:00:00 2001 From: "J. King" Date: Tue, 3 Nov 2020 18:57:26 -0500 Subject: [PATCH] Fix blob tests --- tests/cases/Db/BaseResult.php | 4 ++-- tests/cases/Db/PostgreSQL/TestResult.php | 12 ------------ tests/cases/Db/PostgreSQLPDO/TestResult.php | 12 ------------ 3 files changed, 2 insertions(+), 26 deletions(-) diff --git a/tests/cases/Db/BaseResult.php b/tests/cases/Db/BaseResult.php index 7d63af2..a43956d 100644 --- a/tests/cases/Db/BaseResult.php +++ b/tests/cases/Db/BaseResult.php @@ -133,13 +133,13 @@ abstract class BaseResult extends \JKingWeb\Arsse\Test\AbstractTest { public function testGetBlobRow(): void { $exp = ['blob' => hex2bin("DEADBEEF")]; - $test = new $this->resultClass(...$this->makeResult(self::$selectBlob)); + $test = new $this->resultClass(...$this->makeResult(static::$selectBlob)); $this->assertEquals($exp, $test->getRow()); } public function testGetBlobValue(): void { $exp = hex2bin("DEADBEEF"); - $test = new $this->resultClass(...$this->makeResult(self::$selectBlob)); + $test = new $this->resultClass(...$this->makeResult(static::$selectBlob)); $this->assertEquals($exp, $test->getValue()); } } diff --git a/tests/cases/Db/PostgreSQL/TestResult.php b/tests/cases/Db/PostgreSQL/TestResult.php index 73dd8fb..658228e 100644 --- a/tests/cases/Db/PostgreSQL/TestResult.php +++ b/tests/cases/Db/PostgreSQL/TestResult.php @@ -30,16 +30,4 @@ class TestResult extends \JKingWeb\Arsse\TestCase\Db\BaseResult { } parent::tearDownAfterClass(); } - - public function testGetBlobRow(): void { - $exp = ['blob' => hex2bin("DEADBEEF")]; - $test = new $this->resultClass(...$this->makeResult(self::$selectBlob)); - $this->assertEquals($exp, $test->getRow()); - } - - public function testGetBlobValue(): void { - $exp = hex2bin("DEADBEEF"); - $test = new $this->resultClass(...$this->makeResult(self::$selectBlob)); - $this->assertEquals($exp, $test->getValue()); - } } diff --git a/tests/cases/Db/PostgreSQLPDO/TestResult.php b/tests/cases/Db/PostgreSQLPDO/TestResult.php index c810b71..caddba7 100644 --- a/tests/cases/Db/PostgreSQLPDO/TestResult.php +++ b/tests/cases/Db/PostgreSQLPDO/TestResult.php @@ -21,16 +21,4 @@ class TestResult extends \JKingWeb\Arsse\TestCase\Db\BaseResult { $set = static::$interface->query($q); return [static::$interface, $set]; } - - public function testGetBlobRow(): void { - $exp = ['blob' => hex2bin("DEADBEEF")]; - $test = new $this->resultClass(...$this->makeResult(self::$selectBlob)); - $this->assertEquals($exp, $test->getRow()); - } - - public function testGetBlobValue(): void { - $exp = hex2bin("DEADBEEF"); - $test = new $this->resultClass(...$this->makeResult(self::$selectBlob)); - $this->assertSame($exp, $test->getValue()); - } }