Skip to content

Commit 48878cb

Browse files
committed
fix: lint and require test assertion
1 parent 22bfc4f commit 48878cb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/EasyPost/RequireTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<?php
22

3-
// Manually require the library (do not use namespace) to ensure there are no import errors
4-
// when the autoloader is not used.
3+
namespace EasyPost\Test;
4+
5+
// Manually require the library to ensure there are no import errors (eg: when the autoloader is not used)
56
require 'lib/easypost.php';
67

78
class RequireTest extends \PHPUnit\Framework\TestCase
89
{
910
/**
1011
* Tests that no errors are thrown when we import the library without using the autoloader.
1112
* Things like missing or extra imports should be caught by this. The actual assertion here
12-
* doesn't matter, only that an import/require error isn't thrown.
13+
* doesn't matter, only that an import/require error isn't thrown when the test suite runs.
1314
*/
1415
public function testRequireLibrary()
1516
{
16-
$apiBase = \EasyPost\EasyPost::getApiBase();
17-
$this->assertEquals('https://api.easypost.com/v2', $apiBase);
17+
$this->expectNotToPerformAssertions();
1818
}
1919
}

0 commit comments

Comments
 (0)