From f9c473392afc95a5f331966b73ea8cbb67ca0af6 Mon Sep 17 00:00:00 2001 From: "Chun-Sheng, Li" Date: Fri, 10 Dec 2021 23:32:15 +0800 Subject: [PATCH] #v2.1.2112.1-rc - Improve autoloading and assertions (#13) --- composer.json | 4 ++-- tests/BitPaySDKLight/BitPayTest.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index 02c1734..c30d5f3 100644 --- a/composer.json +++ b/composer.json @@ -28,12 +28,12 @@ }, "autoload": { "psr-4": { - "": "src/" + "BitPaySDKLight\\": "src/BitPaySDKLight" } }, "autoload-dev": { "psr-4": { - "BitPaySDKLight\\Test\\": "tests/" + "BitPaySDKLight\\Test\\": "tests/BitPaySDKLight" } } } diff --git a/tests/BitPaySDKLight/BitPayTest.php b/tests/BitPaySDKLight/BitPayTest.php index 1a0665a..9b32191 100644 --- a/tests/BitPaySDKLight/BitPayTest.php +++ b/tests/BitPaySDKLight/BitPayTest.php @@ -1,6 +1,6 @@ getMessage()); } - $this->assertTrue($rate != 0); + $this->assertNotEquals(0, $rate); } public function testShouldGetCNYExchangeRate() @@ -333,7 +333,7 @@ public function testShouldGetCNYExchangeRate() self::fail($e->getMessage()); } - $this->assertTrue($rate != 0); + $this->assertNotEquals(0, $rate); } public function testShouldUpdateExchangeRates()