Skip to content

Commit

Permalink
chore: refactor includes in favor of autoload-dev (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer committed Jun 8, 2023
1 parent a925ca4 commit dfd5cb4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
3 changes: 3 additions & 0 deletions composer.json
Expand Up @@ -20,6 +20,9 @@
"phpunit/phpunit": "^7.5|^8.0",
"guzzlehttp/guzzle": "^7.2"
},
"autoload-dev": {
"files": ["tests/common/types.php"]
},
"bin": [
"router.php"
]
Expand Down
2 changes: 0 additions & 2 deletions tests/FunctionsFrameworkTest.php
Expand Up @@ -17,8 +17,6 @@

namespace Google\CloudFunctions\Tests;

require_once 'tests/common/types.php';

use Google\CloudFunctions\FunctionsFramework;
use Google\CloudFunctions\FunctionsFrameworkTesting;
use PHPUnit\Framework\TestCase;
Expand Down
2 changes: 0 additions & 2 deletions tests/InvokerTest.php
Expand Up @@ -18,8 +18,6 @@

namespace Google\CloudFunctions\Tests;

require_once 'tests/common/types.php';

use CloudEvents\V1\CloudEventInterface;
use Exception;
use Google\CloudFunctions\CloudEvent;
Expand Down
2 changes: 0 additions & 2 deletions tests/TypedFunctionWrapperTest.php
Expand Up @@ -18,8 +18,6 @@

namespace Google\CloudFunctions\Tests;

require_once 'tests/common/types.php';

use Google\CloudFunctions\HttpFunctionWrapper;
use Google\CloudFunctions\Tests\Common\BadType;
use Google\CloudFunctions\Tests\Common\IntValue;
Expand Down

0 comments on commit dfd5cb4

Please sign in to comment.