File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 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)
56require 'lib/easypost.php ' ;
67
78class 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}
You can’t perform that action at this time.
0 commit comments