Skip to content

Commit

Permalink
fix phpunit
Browse files Browse the repository at this point in the history
  • Loading branch information
SethSharp committed Jun 12, 2024
1 parent 683ad82 commit aa507eb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
16 changes: 7 additions & 9 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="./tests/bootstrap.php"
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
failOnRisky="true"
failOnWarning="true"
stopOnFailure="false">
>
<testsuites>
<testsuite name="Odds Client Test Suite">
<directory suffix=".php">./tests/</directory>
<testsuite name="Main Testing Suite">
<directory>./tests/</directory>
</testsuite>
</testsuites>
</phpunit>
</phpunit>
3 changes: 1 addition & 2 deletions tests/Traits/Endpoints/UseOddsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@
use PHPUnit\Framework\TestCase;
use SethSharp\OddsApi\OddsClient;
use SethSharp\OddsApi\Enums\SportsEnum;
use http\Exception\InvalidArgumentException;

class UseOddsTest extends TestCase
{
/** @test */
public function regions_is_required()
{
$this->expectException(InvalidArgumentException::class);
$this->expectException(\InvalidArgumentException::class);

$oddsClient = new OddsClient('123456789');

Expand Down

0 comments on commit aa507eb

Please sign in to comment.