Skip to content
Snippets Groups Projects
Verified Commit f46fc17c authored by Marco Schlicht's avatar Marco Schlicht :speech_balloon:
Browse files
parents 47a4d3a6 658ed86b
Branches
No related tags found
No related merge requests found
......@@ -20,6 +20,8 @@
- phpunit (for unit tests)
```bash
sudo phive install -g phpunit
# on php 7.0
sudo phive install -g https://phar.phpunit.de/phpunit-6.5.5.phar
```
- phpab (for generating an autoload file)
```bash
......@@ -46,6 +48,10 @@
export PATH=${PATH}:$HOME/.config/composer/vendor/bin
fi
```
- other dependencies
```bash
composer install
```
## Coding Style
- PEAR
......
{
"name": "rwthmoodleapi/rwthmoodleapi",
"type": "library",
"description": "A PHP library to remap the moodle api, to look like the L2P api.",
"keywords": [
"Rwth",
"Moodle",
"L2P"
],
"homepage": "https://git.rwth-aachen.de/moodle_l2p_public/rwth_moodle_api",
"license": "GPLv3",
"authors": [
{
"name": "Marco Schlicht",
"email": "schlicht@itc.rwth-aachen.de",
"homepage": "https://git.rwth-aachen.de/marcoschlicht",
"role": "Developer"
}
],
"require": {
"guzzlehttp/guzzle": "~6.0"
},
"require-dev": {
"phpunit/phpunit": "6.*"
},
"autoload": {
"psr-0": {"": "src/"}
},
"scripts": {
"test": "./run_tests.sh",
"testdox": "./run_testdox.sh"
}
}
<?php
require __DIR__ . "/vendor/autoload.php";
echo "hallo welt";
$l = new RwthMoodleApi\Logging\ConsoleLogger(4);
echo $l->getSeverityLvl();
#!/bin/bash
# run all tests
phpunit --verbose --colors=always --bootstrap src/autoload.inc.php --testdox tests
phpunit --verbose --colors=always --testdox tests
......@@ -3,4 +3,4 @@
# run one test
# phpunit --verbose --colors=always --bootstrap src/autoload.inc.php tests/RwthMoodleApi/RwthMoodleApiTest
# phpunit --colors=always --bootstrap src/autoload.inc.php tests/RwthMoodleApi/RwthMoodleApiTest
phpunit --verbose --strict-global-state --colors=always --bootstrap src/autoload.inc.php tests/
phpunit --verbose --strict-global-state --colors=always tests/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment