Bläddra i källkod

initial commit

tags/0.1.0
po_taka 7 år sedan
förälder
incheckning
8d51afe526
12 ändrade filer med 40 tillägg och 44 borttagningar
  1. +1
    -4
      .gitignore
  2. +21
    -0
      LICENSE
  3. +1
    -7
      README.md
  4. +6
    -4
      composer.json
  5. +0
    -15
      tests/bootstrap.php
  6. +2
    -0
      tests/phpUnit/.gitignore
  7. +0
    -0
      tests/phpUnit/Test/Potaka/BbCode/BbCodeTest.php
  8. +0
    -0
      tests/phpUnit/Test/Potaka/BbCode/Tag/BoldTest.php
  9. +0
    -0
      tests/phpUnit/Test/Potaka/BbCode/Tag/ItalicTest.php
  10. +0
    -0
      tests/phpUnit/Test/Potaka/BbCode/Tag/UnderlineTest.php
  11. +3
    -0
      tests/phpUnit/bootstrap.php
  12. +6
    -14
      tests/phpUnit/phpunit.xml

+ 1
- 4
.gitignore Visa fil

@@ -1,5 +1,2 @@
/nbproject/private/
/vendor/
/composer.lock
/nbproject/
/tmp/
/vendor

+ 21
- 0
LICENSE Visa fil

@@ -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
README.md Visa fil

@@ -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!

+ 6
- 4
composer.json Visa fil

@@ -1,9 +1,11 @@
{
"name": "-",
"type": "-",
"description": "-",
"name": "potaka/bbcode",
"type": "library",
"description": "php parser for bb code",
"license": "MIT",
"require": {
"phpUnit/phpUnit": "*"
"php": ">=7.0",
"phpUnit/phpUnit": "5.6.*"
},
"autoload": {
"psr-0": {


+ 0
- 15
tests/bootstrap.php Visa fil

@@ -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;
}
}
);

+ 2
- 0
tests/phpUnit/.gitignore Visa fil

@@ -0,0 +1,2 @@
/codeCoverage*


tests/Potaka/BbCode/BbCodeTest.php → tests/phpUnit/Test/Potaka/BbCode/BbCodeTest.php Visa fil


tests/Potaka/BbCode/Tag/BoldTest.php → tests/phpUnit/Test/Potaka/BbCode/Tag/BoldTest.php Visa fil


tests/Potaka/BbCode/Tag/ItalicTest.php → tests/phpUnit/Test/Potaka/BbCode/Tag/ItalicTest.php Visa fil


tests/Potaka/BbCode/Tag/UnderlineTest.php → tests/phpUnit/Test/Potaka/BbCode/Tag/UnderlineTest.php Visa fil


+ 3
- 0
tests/phpUnit/bootstrap.php Visa fil

@@ -0,0 +1,3 @@
<?php

require_once __DIR__ . '/../../vendor/autoload.php';

phpunit.xml → tests/phpUnit/phpunit.xml Visa fil

@@ -1,6 +1,6 @@
<phpunit backupGlobals="true"
backupStaticAttributes="false"
bootstrap="./tests/bootstrap.php"
bootstrap="bootstrap.php"
cacheTokens="false"
colors="true"
convertErrorsToExceptions="true"
@@ -8,24 +8,17 @@
convertWarningsToExceptions="true"
forceCoversAnnotation="false"
mapTestClassNameToCoveredClassName="false"
printerClass="PHPUnit_TextUI_ResultPrinter"
processIsolation="false"
stopOnError="false"
stopOnFailure="false"
stopOnIncomplete="false"
stopOnSkipped="false"
strict="false"
verbose="false">
verbose="false"
>
<testsuites>
<testsuite name="My Test Suite">
<directory>./tests</directory>
<directory>./Test</directory>
</testsuite>
</testsuites>
<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="testdox-html" target="tmp/testdox.html"/>-->
</logging>
@@ -35,8 +28,7 @@
<directory>vendor</directory>
</blacklist>
<whitelist>
<directory>src</directory>
<directory>../../src</directory>
</whitelist>
</filter>
</phpunit>


Laddar…
Avbryt
Spara