Skip to content

Commit ed2e7c2

Browse files
committed
Improve composer config and add a new enum lib as dependency.
1 parent ad8b6e5 commit ed2e7c2

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ Bugs and feature request are tracked on [GitHub](https://github.com/bigbluebutto
3737
Make sure the code style configuration is applied by running PHPCS-Fixer.
3838

3939
```
40-
./vendor/bin/php-cs-fixer fix
40+
composer cs-fix
4141
```
4242

4343
### Running tests
4444

4545
For every implemented feature add unit tests and check all is green by running the command below.
4646

4747
```bash
48-
./vendor/bin/phpunit
48+
composer test
4949
```
5050

5151
To run a single test

composer.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,34 @@
2626
"php": ">=7.1",
2727
"ext-curl": "*",
2828
"ext-simplexml": "*",
29-
"ext-mbstring": "*"
29+
"ext-mbstring": "*",
30+
"marc-mabe/php-enum": "^4.7"
3031
},
3132
"require-dev": {
32-
"ext-mbstring": "*",
3333
"phpunit/phpunit": "^8.5",
3434
"fakerphp/faker": "^1.17",
3535
"friendsofphp/php-cs-fixer": "^3.8.0",
3636
"squizlabs/php_codesniffer": "^3.7",
3737
"php-coveralls/php-coveralls": "^2.5.2"
3838
},
39+
"scripts": {
40+
"test": "./vendor/bin/phpunit",
41+
"cs-fix": "./vendor/bin/php-cs-fixer fix --allow-risky yes"
42+
},
3943
"options": {
4044
"symlink": false
4145
},
4246
"autoload": {
4347
"psr-4": {
4448
"BigBlueButton\\": "src"
4549
}
50+
},
51+
"autoload-dev": {
52+
"psr-4": {
53+
"BigBlueButton\\": [
54+
"src",
55+
"tests"
56+
]
57+
}
4658
}
4759
}

phpunit.xml.dist

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@
1818
<env name="BBB_SERVER_BASE_URL" value="https://test-install.blindsidenetworks.com/bigbluebutton/"/>
1919
</php>
2020

21-
<log type="coverage-html" target="./coverage"
22-
charset='UTF-8' yui='true'/>
21+
<logging>
22+
<log type="coverage-html" target="./coverage"/>
23+
</logging>
2324

2425
<filter>
2526
<whitelist processUncoveredFilesFromWhitelist="true">

0 commit comments

Comments
 (0)