@@ -1,5 +1,2 @@ | |||||
/nbproject/private/ | |||||
/vendor/ | |||||
/composer.lock | /composer.lock | ||||
/nbproject/ | |||||
/tmp/ | |||||
/vendor |
@@ -0,0 +1,21 @@ | |||||
MIT License | |||||
Copyright (c) 2016 Angel Koilov <angel.koilov@gmail.com> aka po_taka | |||||
Permission is hereby granted, free of charge, to any person obtaining a copy | |||||
of this software and associated documentation files (the "Software"), to deal | |||||
in the Software without restriction, including without limitation the rights | |||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |||||
copies of the Software, and to permit persons to whom the Software is | |||||
furnished to do so, subject to the following conditions: | |||||
The above copyright notice and this permission notice shall be included in all | |||||
copies or substantial portions of the Software. | |||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |||||
SOFTWARE. |
@@ -1,7 +1 @@ | |||||
bbcode | |||||
====== | |||||
v0.0.2 pre-alpha | |||||
added tags for Bold, Italic & Underline | |||||
v0.0.1 pre-alpha | |||||
not ready to use. Active development! | |||||
# Active development! |
@@ -1,9 +1,11 @@ | |||||
{ | { | ||||
"name": "-", | |||||
"type": "-", | |||||
"description": "-", | |||||
"name": "potaka/bbcode", | |||||
"type": "library", | |||||
"description": "php parser for bb code", | |||||
"license": "MIT", | |||||
"require": { | "require": { | ||||
"phpUnit/phpUnit": "*" | |||||
"php": ">=7.0", | |||||
"phpUnit/phpUnit": "5.6.*" | |||||
}, | }, | ||||
"autoload": { | "autoload": { | ||||
"psr-0": { | "psr-0": { | ||||
@@ -1,15 +0,0 @@ | |||||
<?php | |||||
require_once __DIR__ . '/../vendor/autoload.php'; | |||||
spl_autoload_register( | |||||
function ($className) { | |||||
$file = str_replace('\\', '/', $className); | |||||
$file = __DIR__ . '/../src/' . $file . '.php'; | |||||
if (is_file($file)) { | |||||
require_once $file; | |||||
} else { | |||||
echo $file . ' not found' . PHP_EOL; | |||||
} | |||||
} | |||||
); |
@@ -0,0 +1,2 @@ | |||||
/codeCoverage* | |||||
@@ -0,0 +1,3 @@ | |||||
<?php | |||||
require_once __DIR__ . '/../../vendor/autoload.php'; |
@@ -1,6 +1,6 @@ | |||||
<phpunit backupGlobals="true" | <phpunit backupGlobals="true" | ||||
backupStaticAttributes="false" | backupStaticAttributes="false" | ||||
bootstrap="./tests/bootstrap.php" | |||||
bootstrap="bootstrap.php" | |||||
cacheTokens="false" | cacheTokens="false" | ||||
colors="true" | colors="true" | ||||
convertErrorsToExceptions="true" | convertErrorsToExceptions="true" | ||||
@@ -8,24 +8,17 @@ | |||||
convertWarningsToExceptions="true" | convertWarningsToExceptions="true" | ||||
forceCoversAnnotation="false" | forceCoversAnnotation="false" | ||||
mapTestClassNameToCoveredClassName="false" | mapTestClassNameToCoveredClassName="false" | ||||
printerClass="PHPUnit_TextUI_ResultPrinter" | |||||
processIsolation="false" | processIsolation="false" | ||||
stopOnError="false" | |||||
stopOnFailure="false" | |||||
stopOnIncomplete="false" | |||||
stopOnSkipped="false" | |||||
strict="false" | strict="false" | ||||
verbose="false"> | |||||
verbose="false" | |||||
> | |||||
<testsuites> | <testsuites> | ||||
<testsuite name="My Test Suite"> | <testsuite name="My Test Suite"> | ||||
<directory>./tests</directory> | |||||
<directory>./Test</directory> | |||||
</testsuite> | </testsuite> | ||||
</testsuites> | </testsuites> | ||||
<logging> | <logging> | ||||
<log type="coverage-html" target="tmp/report" charset="UTF-8" highlight="false" lowUpperBound="35" highLowerBound="70"/> | |||||
<log type="coverage-html" target="codeCoverage" charset="UTF-8" highlight="false" lowUpperBound="35" highLowerBound="70"/> | |||||
<log type="coverage-text" target="php://stdout" showUncoveredFiles="false"/> | <log type="coverage-text" target="php://stdout" showUncoveredFiles="false"/> | ||||
<!-- <log type="testdox-html" target="tmp/testdox.html"/>--> | <!-- <log type="testdox-html" target="tmp/testdox.html"/>--> | ||||
</logging> | </logging> | ||||
@@ -35,8 +28,7 @@ | |||||
<directory>vendor</directory> | <directory>vendor</directory> | ||||
</blacklist> | </blacklist> | ||||
<whitelist> | <whitelist> | ||||
<directory>src</directory> | |||||
<directory>../../src</directory> | |||||
</whitelist> | </whitelist> | ||||
</filter> | </filter> | ||||
</phpunit> | </phpunit> | ||||