-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from Xety/optimizations
Updated the code to follow the Cake CS rules + added testscase for PHP7
- Loading branch information
Showing
7 changed files
with
363 additions
and
343 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,38 @@ | ||
{ | ||
"name": "xety/cake3-cookieauth", | ||
"type": "cakephp-plugin", | ||
"description": "A simple Cake3 plugin to authenticate users with Cookies.", | ||
"keywords": ["cakephp", "cake3", "plugin", "cookie", "auth", "authenticate", "login"], | ||
"homepage": "https://github.com/Xety/Cake3-CookieAuth", | ||
"license": "MIT", | ||
"support":{ | ||
"source":"https://github.com/Xety/Cake3-CookieAuth", | ||
"issues":"https://github.com/Xety/Cake3-CookieAuth/issues" | ||
}, | ||
"authors": [ | ||
{ | ||
"name": "Xety", | ||
"email": "zoro.fmt@gmail.com", | ||
"homepage": "https://github.com/Xety" | ||
} | ||
], | ||
"require": { | ||
"php": ">=5.4.0", | ||
"cakephp/cakephp": "~3.0" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "4.1.*" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Xety\\Cake3CookieAuth\\": "src" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Xety\\Cake3CookieAuth\\Test\\": "tests" | ||
} | ||
} | ||
"name": "xety/cake3-cookieauth", | ||
"type": "cakephp-plugin", | ||
"description": "A simple Cake3 plugin to authenticate users with Cookies.", | ||
"keywords": ["cakephp", "cake3", "plugin", "cookie", "auth", "authenticate", "login"], | ||
"homepage": "https://github.com/Xety/Cake3-CookieAuth", | ||
"license": "MIT", | ||
"support":{ | ||
"source":"https://github.com/Xety/Cake3-CookieAuth", | ||
"issues":"https://github.com/Xety/Cake3-CookieAuth/issues" | ||
}, | ||
"authors": [ | ||
{ | ||
"name": "Xety", | ||
"email": "zoro.fmt@gmail.com", | ||
"homepage": "https://github.com/Xety" | ||
} | ||
], | ||
"require": { | ||
"php": ">=5.4.16", | ||
"cakephp/cakephp": "~3.0" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "4.*", | ||
"cakephp/cakephp-codesniffer": "master-dev" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Xety\\Cake3CookieAuth\\": "src" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Xety\\Cake3CookieAuth\\Test\\": "tests" | ||
} | ||
} | ||
|
||
} |
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,31 +1,39 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><phpunit | ||
colors="true" | ||
processIsolation="false" | ||
stopOnFailure="false" | ||
syntaxCheck="false" | ||
bootstrap="./tests/bootstrap.php" | ||
> | ||
<php> | ||
<ini name="memory_limit" value="-1"/> | ||
<ini name="apc.enable_cli" value="1"/> | ||
</php> | ||
colors="true" | ||
processIsolation="false" | ||
stopOnFailure="false" | ||
syntaxCheck="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="Cake3CookieAuth Test Suite"> | ||
<directory>./tests/TestCase</directory> | ||
</testsuite> | ||
</testsuites> | ||
<!-- Add any additional test suites you want to run here --> | ||
<testsuites> | ||
<testsuite name="Cake3CookieAuth Test Suite"> | ||
<directory>./tests/TestCase</directory> | ||
</testsuite> | ||
</testsuites> | ||
|
||
<!-- Setup a listener for fixtures --> | ||
<listeners> | ||
<listener | ||
class="\Cake\TestSuite\Fixture\FixtureInjector" | ||
file="./vendor/cakephp/cakephp/src/TestSuite/Fixture/FixtureInjector.php"> | ||
<arguments> | ||
<object class="\Cake\TestSuite\Fixture\FixtureManager" /> | ||
</arguments> | ||
</listener> | ||
</listeners> | ||
<!-- Setup a listener for fixtures --> | ||
<listeners> | ||
<listener | ||
class="\Cake\TestSuite\Fixture\FixtureInjector" | ||
file="./vendor/cakephp/cakephp/src/TestSuite/Fixture/FixtureInjector.php"> | ||
<arguments> | ||
<object class="\Cake\TestSuite\Fixture\FixtureManager" /> | ||
</arguments> | ||
</listener> | ||
</listeners> | ||
|
||
<!-- Prevent coverage reports from looking in tests, vendors, config folders --> | ||
<filter> | ||
<whitelist> | ||
<directory suffix=".php">./src/</directory> | ||
<directory suffix=".ctp">./src/</directory> | ||
</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
Oops, something went wrong.