From fe4dd553c3ccc08660717dda15db146a618912b0 Mon Sep 17 00:00:00 2001 From: Paul Radt Date: Tue, 31 Oct 2017 15:55:59 +0100 Subject: [PATCH] Expose client --- src/DeezerAPI.php | 8 ++++++++ tests/DeezerAPITest.php | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/src/DeezerAPI.php b/src/DeezerAPI.php index e285155..3613822 100644 --- a/src/DeezerAPI.php +++ b/src/DeezerAPI.php @@ -21,6 +21,14 @@ public function __construct(DeezerAPIClient $client) $this->client = $client; } + /** + * @return DeezerAPIClient + */ + public function getDeezerAPIClient() + { + return $this->client; + } + /** * @return array|object */ diff --git a/tests/DeezerAPITest.php b/tests/DeezerAPITest.php index e26b179..09d7401 100644 --- a/tests/DeezerAPITest.php +++ b/tests/DeezerAPITest.php @@ -30,6 +30,14 @@ public function setUp() $this->deezerApi = new DeezerAPI($this->client); } + /** + * + */ + public function testDeezerAPIClient() + { + self::assertEquals($this->client, $this->deezerApi->getDeezerAPIClient()); + } + /** * */