-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
91 additions
and
25 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,7 @@ | ||
build_failure_conditions: | ||
- 'elements.rating(<= F).new.exists' | ||
- 'issues.severity(>= CRITICAL).new.exists' | ||
|
||
build: | ||
environment: | ||
php: 7.2.13 |
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 |
---|---|---|
@@ -1,16 +1,38 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
|
||
namespace Cruxinator\BitMask\Tests; | ||
|
||
use Cruxinator\BitMask\BitMask; | ||
|
||
/** | ||
* @method self ONE() | ||
* @method bool isONE() | ||
* @method self setONE(bool $onOrOff = true) | ||
* @method self TWO() | ||
* @method bool isTWO() | ||
* @method self setTWO(bool $onOrOff = true) | ||
* @method self FOUR() | ||
* @method bool isFOUR() | ||
* @method self setFOUR(bool $onOrOff = true) | ||
* @method self EIGHT() | ||
* @method bool isEIGHT() | ||
* @method self setEIGHT(bool $onOrOff = true) | ||
* @method self SIXTEEN() | ||
* @method bool isSIXTEEN() | ||
* @method self setSIXTEEN(bool $onOrOff = true) | ||
* @method self THIRTYTWO() | ||
* @method bool isTHIRTYTWO() | ||
* @method self setTHIRTYTWO(bool $onOrOff = true) | ||
*/ | ||
class BitMaskFixture extends BitMask | ||
{ | ||
const ONE = 1; | ||
const TWO = 2; | ||
const FOUR = 4; | ||
const EIGHT = 8; | ||
const SIXTEEN = 16; | ||
const ONE = 1; | ||
const TWO = 2; | ||
const FOUR = 4; | ||
const EIGHT = 8; | ||
const SIXTEEN = 16; | ||
const THIRTYTWO = 32; | ||
} |
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,14 @@ | ||
<?php | ||
|
||
|
||
namespace Cruxinator\BitMask\Tests; | ||
|
||
/** | ||
* @method self ZERO() | ||
* @method bool isZERO() | ||
* @method self setZERO(bool $onOrOff = true) | ||
*/ | ||
class BitMaskZeroFixture extends BitMaskFixture | ||
{ | ||
const ZERO = 0; | ||
} |
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
<?php | ||
require_once(dirname(__DIR__). '/vendor/autoload.php'); | ||
|
||
declare(strict_types=1); | ||
require_once(dirname(__DIR__) . '/vendor/autoload.php'); | ||
|
||
\SebastianBergmann\Comparator\Factory::getInstance()->register(new \MyCLabs\Enum\PHPUnit\Comparator()); |