Skip to content
This repository was archived by the owner on Nov 5, 2022. It is now read-only.

Commit db2c7c9

Browse files
committed
Merge branch 'release/1.0.0-beta0008'
2 parents a20e91a + 5b229af commit db2c7c9

25 files changed

+1903
-43
lines changed

.gitignore

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,2 @@
11
composer.phar
2-
/vendor/
3-
4-
# Commit your application's lock file http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file
5-
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
6-
# composer.lock
7-
/Codeigniter4/Tests
8-
/tests
2+
/vendor/

CONTRIBUTING.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,40 @@
22

33
## Contributing
44

5+
### PHPUnit Testing
6+
7+
***This is currently a work in progress. Not all unit tests are complete or working as intended.***
8+
9+
`cd /Path/To/CodeIgniter4-Standard`
10+
11+
Install dependencies (PHP_Codesniffer).
12+
13+
`composer install`
14+
15+
Verify PHP_Codesniffer works.
16+
17+
`./vendor/squizlabs/php_codesniffer/bin/phpcs -i`
18+
19+
Set installed standard to CodeIgniter4.
20+
21+
`./vendor/squizlabs/php_codesniffer/bin/phpcs --config-set installed_paths /Path/To/CodeIgniter4-Standard/CodeIgniter4`
22+
23+
Verify the CodeIgniter4 standard is installed.
24+
25+
`./vendor/squizlabs/php_codesniffer/bin/phpcs -i`
26+
27+
Change directory to 'php_codesniffer'.
28+
29+
`cd ./vendor/squizlabs/php_codesniffer/`
30+
31+
Install PHP_Codesniffer dependencies (PHPUnit).
32+
33+
`composer install`
34+
35+
Change directory back to 'CodeIgniter4-Standard'.
36+
37+
`cd ../../../`
38+
39+
Run unit tests.
40+
41+
`./vendor/squizlabs/php_codesniffer/vendor/bin/phpunit --debug --filter CodeIgniter4 ./vendor/squizlabs/php_codesniffer/tests/AllTests.php`

0 commit comments

Comments
 (0)