-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding php.unit.xml file; fixing some tests, adding more for code cov…
…erage
- Loading branch information
1 parent
7745f98
commit 6955434
Showing
20 changed files
with
301 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<phpunit colors="true" bootstrap="vendor/autoload.php"> | ||
<testsuites> | ||
<testsuite name="Test Coverage"> | ||
<directory>./tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
|
||
<filter> | ||
<whitelist> | ||
<directory>.</directory> | ||
<exclude> | ||
<directory>./tests</directory> | ||
<file>./src/Request/Stats/Stats/AllStar/AllStarBallotPredictorRequest.php</file> | ||
</exclude> | ||
</whitelist> | ||
</filter> | ||
</phpunit> |
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
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
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
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,15 @@ | ||
<?php | ||
|
||
namespace JasonRoman\NbaApi\Tests\Unit\Params; | ||
|
||
use JasonRoman\NbaApi\Params\SeasonParam; | ||
use JasonRoman\NbaApi\Params\SeasonYearParam; | ||
use PHPUnit\Framework\TestCase; | ||
|
||
class SeasonYearParamTest extends TestCase | ||
{ | ||
public function testGetDefaultValue() | ||
{ | ||
$this->assertSame(SeasonParam::currentSeasonStartYear(), SeasonYearParam::getDefaultValue()); | ||
} | ||
} |
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,15 @@ | ||
<?php | ||
|
||
namespace JasonRoman\NbaApi\Tests\Unit\Params\Stats; | ||
|
||
use JasonRoman\NbaApi\Params\Stats\OpponentTeamIdParam; | ||
use PHPUnit\Framework\TestCase; | ||
|
||
class OpponentTeamIdParamTest extends TestCase | ||
{ | ||
// this is not hit by integration tests...adding here for code coverage | ||
public function testGetDefaultValue() | ||
{ | ||
$this->assertSame(OpponentTeamIdParam::MIN_ALL, OpponentTeamIdParam::getDefaultValue()); | ||
} | ||
} |
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,15 @@ | ||
<?php | ||
|
||
namespace JasonRoman\NbaApi\Tests\Unit\Params\StatsProd; | ||
|
||
use JasonRoman\NbaApi\Params\SeasonParam as BaseSeasonParam; | ||
use JasonRoman\NbaApi\Params\StatsProd\SeasonParam; | ||
use PHPUnit\Framework\TestCase; | ||
|
||
class SeasonParamTest extends TestCase | ||
{ | ||
public function testGetDefaultValue() | ||
{ | ||
$this->assertSame(BaseSeasonParam::currentSeasonStartYear(), SeasonParam::getDefaultValue()); | ||
} | ||
} |
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,16 @@ | ||
<?php | ||
|
||
namespace JasonRoman\NbaApi\Tests\Unit\Params; | ||
|
||
use JasonRoman\NbaApi\Params\SeasonParam; | ||
use JasonRoman\NbaApi\Params\SeasonYearParam; | ||
use JasonRoman\NbaApi\Params\YearParam; | ||
use PHPUnit\Framework\TestCase; | ||
|
||
class YearParamTest extends TestCase | ||
{ | ||
public function testGetDefaultValue() | ||
{ | ||
$this->assertSame(SeasonParam::currentSeasonStartYear(), YearParam::getDefaultValue()); | ||
} | ||
} |
Oops, something went wrong.