-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #212 from EasyPost/fix_extra_imports
fix: extra imports and add regression test
- Loading branch information
Showing
3 changed files
with
63 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace EasyPost\Test; | ||
|
||
require 'lib/easypost.php'; | ||
|
||
class RequireTest extends \PHPUnit\Framework\TestCase | ||
{ | ||
/** | ||
* Tests that no errors are thrown when we import the library without using the autoloader. | ||
* Things like missing or extra imports should be caught by this. The actual assertion here | ||
* doesn't matter, only that an import/require error isn't thrown. | ||
*/ | ||
public function testRequireLibrary() | ||
{ | ||
$apiBase = \EasyPost\EasyPost::getApiBase(); | ||
$this->assertEquals('https://api.easypost.com/v2', $apiBase); | ||
} | ||
} |