CredentialsTest.php 914 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * This file is part of the DigitalOcean library.
  4. *
  5. * (c) Antoine Corcy <contact@sbin.dk>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace DigitalOcean\Tests;
  11. use DigitalOcean\Credentials;
  12. /**
  13. * @author Antoine Corcy <contact@sbin.dk>
  14. */
  15. class CrendentialsTest extends TestCase
  16. {
  17. protected $clientId;
  18. protected $apiKey;
  19. protected $credentials;
  20. protected function setUp()
  21. {
  22. $this->clientId = 'foo';
  23. $this->apiKey = 'bar';
  24. $this->credentials = new Credentials($this->clientId, $this->apiKey);
  25. }
  26. public function testGetClientId()
  27. {
  28. $this->assertSame($this->clientId, $this->credentials->getClientId());
  29. }
  30. public function testGetApiKey()
  31. {
  32. $this->assertSame($this->apiKey, $this->credentials->getApiKey());
  33. }
  34. }