-
Notifications
You must be signed in to change notification settings - Fork 0
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
79 changed files
with
806 additions
and
484 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
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 |
---|---|---|
|
@@ -3,6 +3,9 @@ language: php | |
php: | ||
- 7.4 | ||
- 8.0 | ||
- 8.1 | ||
- 8.2 | ||
- 8.3 | ||
|
||
sudo: false | ||
|
||
|
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,33 @@ | ||
version: '3.8' | ||
|
||
services: | ||
php: | ||
build: ./docker/php | ||
container_name: phpunit-container | ||
volumes: | ||
- .:/app | ||
working_dir: /app | ||
command: "tail -f /dev/null" | ||
depends_on: | ||
- mysql | ||
networks: | ||
- phpnet | ||
environment: | ||
PDO_DB_DSN: "mysql:host=mysql;dbname=test" | ||
|
||
mysql: | ||
image: mysql:latest | ||
container_name: mysql-container | ||
environment: | ||
MYSQL_ROOT_PASSWORD: changeme | ||
MYSQL_DATABASE: test | ||
MYSQL_USER: test | ||
MYSQL_PASSWORD: changeme | ||
ports: | ||
- "3306:3306" | ||
networks: | ||
- phpnet | ||
|
||
networks: | ||
phpnet: | ||
driver: bridge |
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 @@ | ||
FROM php:8.3-cli | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y libzip-dev zip git | ||
|
||
RUN pear update-channels \ | ||
&& pecl update-channels \ | ||
&& pecl install xdebug redis | ||
|
||
RUN docker-php-ext-install pdo_mysql zip | ||
RUN docker-php-ext-enable pdo_mysql zip redis xdebug | ||
|
||
# Install Composer globally | ||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer |
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,42 +1,35 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit | ||
colors="true" | ||
processIsolation="false" | ||
stopOnFailure="false" | ||
bootstrap="./tests/bootstrap.php" | ||
> | ||
<php> | ||
<ini name="memory_limit" value="-1"/> | ||
<ini name="apc.enable_cli" value="1"/> | ||
</php> | ||
|
||
<!-- Add any additional test suites you want to run here --> | ||
<testsuites> | ||
<testsuite name="authentication"> | ||
<directory>tests/TestCase/</directory> | ||
</testsuite> | ||
<!-- Add plugin test suites here. --> | ||
</testsuites> | ||
|
||
<logging> | ||
<log type="coverage-html" target="./tmp/tests/report" lowUpperBound="35" highLowerBound="70"/> | ||
<!--<log type="coverage-clover" target="./tmp/tests/coverage.xml"/>--> | ||
<!--<log type="coverage-php" target="/tmp/coverage.serialized"/>--> | ||
<!--<log type="coverage-text" target="php://stdout" showUncoveredFiles="false"/>--> | ||
<!--<log type="json" target="/tmp/logfile.json"/>--> | ||
<!--<log type="tap" target="/tmp/logfile.tap"/>--> | ||
<!--<log type="junit" target="/tmp/logfile.xml" logIncompleteSkipped="false"/>--> | ||
<!--<log type="testdox-html" target=".//tmp/tests/testdox.html"/>--> | ||
<!--<log type="testdox-text" target=".//tmp/tests/testdox.txt"/>--> | ||
</logging> | ||
|
||
<filter> | ||
<whitelist processUncoveredFilesFromWhitelist="true"> | ||
<directory suffix=".php">src/</directory> | ||
<exclude> | ||
<file>src/Identifier/Ldap/ExtensionAdapter.php</file> | ||
</exclude> | ||
</whitelist> | ||
</filter> | ||
|
||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" colors="true" processIsolation="false" stopOnFailure="false" bootstrap="./tests/bootstrap.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"> | ||
<coverage processUncoveredFiles="true"> | ||
<include> | ||
<directory suffix=".php">src/</directory> | ||
</include> | ||
<exclude> | ||
<file>src/Identifier/Ldap/ExtensionAdapter.php</file> | ||
</exclude> | ||
<report> | ||
<html outputDirectory="./tmp/tests/report" lowUpperBound="35" highLowerBound="70"/> | ||
</report> | ||
</coverage> | ||
<php> | ||
<ini name="memory_limit" value="-1"/> | ||
<ini name="apc.enable_cli" value="1"/> | ||
</php> | ||
<!-- Add any additional test suites you want to run here --> | ||
<testsuites> | ||
<testsuite name="authentication"> | ||
<directory>tests/TestCase/</directory> | ||
</testsuite> | ||
<!-- Add plugin test suites here. --> | ||
</testsuites> | ||
<logging> | ||
<!--<log type="coverage-clover" target="./tmp/tests/coverage.xml"/>--> | ||
<!--<log type="coverage-php" target="/tmp/coverage.serialized"/>--> | ||
<!--<log type="coverage-text" target="php://stdout" showUncoveredFiles="false"/>--> | ||
<!--<log type="json" target="/tmp/logfile.json"/>--> | ||
<!--<log type="tap" target="/tmp/logfile.tap"/>--> | ||
<!--<log type="junit" target="/tmp/logfile.xml" logIncompleteSkipped="false"/>--> | ||
<!--<log type="testdox-html" target=".//tmp/tests/testdox.html"/>--> | ||
<!--<log type="testdox-text" target=".//tmp/tests/testdox.txt"/>--> | ||
</logging> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Phauthentic\Authentication; | ||
|
||
use Exception; | ||
|
||
/** | ||
* Authentication Exception | ||
*/ | ||
class AuthenticationException extends Exception | ||
{ | ||
} |
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
Oops, something went wrong.