-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make testing work on recent PHP versions
- Loading branch information
1 parent
b5b26dd
commit bdc4a20
Showing
20 changed files
with
187 additions
and
105 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,12 @@ | ||
name: Code Quality Checks | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
|
||
jobs: | ||
code-quality: | ||
uses: brightnucleus/.github/.github/workflows/reusable-code-quality.yml@main |
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 @@ | ||
name: Testing | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
schedule: | ||
- cron: '17 1 * * *' # Run every day on a seemly random time. | ||
|
||
jobs: | ||
test: | ||
uses: brightnucleus/.github/.github/workflows/reusable-testing.yml@main | ||
with: | ||
minimum-php: '7.4' |
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,9 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="Bright Nucleus View"> | ||
<description>The coding standard for the Bright Nucleus View package.</description> | ||
|
||
<file>src</file> | ||
<file>tests</file> | ||
|
||
<rule ref="PSR2"/> | ||
</ruleset> |
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,25 +1,18 @@ | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.8/phpunit.xsd" | ||
bootstrap="vendor/autoload.php" | ||
colors="true" | ||
beStrictAboutTestsThatDoNotTestAnything="true" | ||
beStrictAboutOutputDuringTests="true" | ||
beStrictAboutTestSize="true" | ||
beStrictAboutChangesToGlobalState="false"> | ||
<testsuites> | ||
<testsuite name="view"> | ||
<file>tests/ViewTest.php</file> | ||
<file>tests/ViewBuilderTest.php</file> | ||
<file>tests/ViewFacadeTest.php</file> | ||
</testsuite> | ||
<testsuite name="location"> | ||
<file>tests/FilesystemLocationTest.php</file> | ||
<file>tests/LocationCollectionTest.php</file> | ||
</testsuite> | ||
</testsuites> | ||
<filter> | ||
<whitelist processUncoveredFilesFromWhitelist="true"> | ||
<directory suffix=".php">src</directory> | ||
</whitelist> | ||
</filter> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd" | ||
bootstrap="vendor/yoast/phpunit-polyfills/phpunitpolyfills-autoload.php" | ||
verbose="true" | ||
colors="true"> | ||
<testsuites> | ||
<testsuite name="unit"> | ||
<directory suffix="Test.php">tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<coverage processUncoveredFiles="true"> | ||
<include> | ||
<directory suffix=".php">src</directory> | ||
</include> | ||
</coverage> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,4 +25,3 @@ class Findables extends ArrayCollection | |
{ | ||
|
||
} | ||
|
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 |
---|---|---|
|
@@ -9,10 +9,11 @@ | |
* @copyright 2016-2017 Alain Schlesser, Bright Nucleus | ||
*/ | ||
|
||
namespace BrightNucleus\View; | ||
namespace BrightNucleus\View\Tests; | ||
|
||
use BrightNucleus\View\Location\FilesystemLocation; | ||
use BrightNucleus\View\Location\URIs; | ||
use BrightNucleus\View\Tests\TestCase; | ||
|
||
/** | ||
* Class FilesystemLocationTest. | ||
|
@@ -22,7 +23,7 @@ | |
* @package BrightNucleus\View | ||
* @author Alain Schlesser <[email protected]> | ||
*/ | ||
class FilesystemLocationTest extends \PHPUnit_Framework_TestCase | ||
class FilesystemLocationTest extends TestCase | ||
{ | ||
|
||
/** | ||
|
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 |
---|---|---|
|
@@ -9,10 +9,11 @@ | |
* @copyright 2016-2017 Alain Schlesser, Bright Nucleus | ||
*/ | ||
|
||
namespace BrightNucleus\View; | ||
namespace BrightNucleus\View\Tests; | ||
|
||
use BrightNucleus\View\Location\FilesystemLocation; | ||
use BrightNucleus\View\Location\Locations; | ||
use BrightNucleus\View\Tests\TestCase; | ||
|
||
/** | ||
* Class LocationCollectionTest. | ||
|
@@ -22,7 +23,7 @@ | |
* @package BrightNucleus\View | ||
* @author Alain Schlesser <[email protected]> | ||
*/ | ||
class LocationCollectionTest extends \PHPUnit_Framework_TestCase | ||
class LocationCollectionTest extends TestCase | ||
{ | ||
|
||
public function testAddingKnownLocations() | ||
|
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 @@ | ||
<?php | ||
/** | ||
* Bright Nucleus Config Component. | ||
* | ||
* @package BrightNucleus\Config | ||
* @author Alain Schlesser <[email protected]> | ||
* @license MIT | ||
* @link http://www.brightnucleus.com/ | ||
* @copyright 2016 Alain Schlesser, Bright Nucleus | ||
*/ | ||
|
||
namespace BrightNucleus\View\Tests; | ||
|
||
use Yoast\PHPUnitPolyfills\TestCases\TestCase as PolyfilledTestCase; | ||
|
||
class TestCase extends PolyfilledTestCase | ||
{ | ||
|
||
} |
Oops, something went wrong.