Skip to content

Commit

Permalink
Expose client
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Radt committed Oct 31, 2017
1 parent 5c54aa1 commit fe4dd55
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/DeezerAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ public function __construct(DeezerAPIClient $client)
$this->client = $client;
}

/**
* @return DeezerAPIClient
*/
public function getDeezerAPIClient()
{
return $this->client;
}

/**
* @return array|object
*/
Expand Down
8 changes: 8 additions & 0 deletions tests/DeezerAPITest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ public function setUp()
$this->deezerApi = new DeezerAPI($this->client);
}

/**
*
*/
public function testDeezerAPIClient()
{
self::assertEquals($this->client, $this->deezerApi->getDeezerAPIClient());
}

/**
*
*/
Expand Down

0 comments on commit fe4dd55

Please sign in to comment.