Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
713uk13m authored and 713uk13m committed Dec 30, 2018
1 parent a6c7b2c commit b2d6215
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 12 deletions.
9 changes: 1 addition & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,7 @@
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
"MyDebugTests\\": "tests/"
}
},
"config": {
"process-timeout": 0
},
"scripts": {
"start": "php -S localhost:8080 -t public",
"test": "phpunit"
}
}
58 changes: 58 additions & 0 deletions composer.json.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"name": "nguyenanhung/my-debug",
"type": "library",
"description": "My Debug, Logger Library",
"keywords": [
"debug",
"logger",
"log"
],
"homepage": "https://github.com/nguyenanhung/my-debug",
"license": "GPL-3.0",
"authors": [
{
"name": "Nguyen An Hung",
"email": "dev@nguyenanhung.com",
"homepage": "https://nguyenanhung.com",
"role": "Developer"
}
],
"require": {
"ext-json": "*",
"monolog/monolog": "^1.23",
"cocur/slugify": "^1.4.1",
"theseer/directoryscanner": "^1.3",
"symfony/process": "^3.4.17",
"symfony/filesystem": "^3.4.17",
"symfony/polyfill": "^1.9.0",
"doctrine/collections": "1.3.0",
"alchemy/zippy": "^0.4.9"
},
"require-dev": {
"kint-php/kint": "^3.0"
},
"suggest": {
"ext-curl": "Needed to support cURL",
"ext-json": "Needed to support JSON",
"ext-iconv": "Needed to support ICONV",
"ext-mbstring": "Needed to support MbString",
"ext-openssl": "Needed to support OpenSSL"
},
"autoload": {
"psr-4": {
"nguyenanhung\\MyDebug\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"config": {
"process-timeout": 0
},
"scripts": {
"start": "php -S localhost:8080 -t public",
"test": "phpunit"
}
}
2 changes: 1 addition & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<phpunit bootstrap="vendor/autoload.php">
<testsuites>
<testsuite name="MyDebug">
<testsuite name="MyDebugTests">
<directory>tests</directory>
</testsuite>
</testsuites>
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/BaseTestCase.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Tests\Functional;
namespace MyDebugTests\Functional;

/**
* This is an example class that shows how you could set up a method that
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/DebugTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Time: 11:37
*/

namespace Tests\Functional;
namespace MyDebugTests\Functional;

use nguyenanhung\MyDebug\Debug;

Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/UtilsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Time: 11:37
*/

namespace Tests\Functional;
namespace MyDebugTests\Functional;

use nguyenanhung\MyDebug\Utils;

Expand Down

0 comments on commit b2d6215

Please sign in to comment.