Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 78 lines (59 sloc) 2.264 kB
3f424cf @Ocramius Converting plaintext documentation to markdown. Cleaning up markup, r…
Ocramius authored
1 # CONTRIBUTING
2
3 ## RESOURCES
4
5 If you wish to contribute to Zend Framework, please be sure to
6 read/subscribe to the following resources:
7
8 - Coding Standards:
1349ddc @Maks3w Update Coding-Standars link
Maks3w authored
9 http://framework.zend.com/wiki/display/ZFDEV2/Coding+Standards
3f424cf @Ocramius Converting plaintext documentation to markdown. Cleaning up markup, r…
Ocramius authored
10 - ZF Git Guide:
5825a11 @Maks3w More link updates
Maks3w authored
11 [README-GIT.md](README-GIT.md)
3f424cf @Ocramius Converting plaintext documentation to markdown. Cleaning up markup, r…
Ocramius authored
12 - Contributor's Guide:
37856b4 @weierophinney Updated git instructions
weierophinney authored
13 http://framework.zend.com/participate/contributor-guide
3f424cf @Ocramius Converting plaintext documentation to markdown. Cleaning up markup, r…
Ocramius authored
14 - ZF Contributor's mailing list:
15 Archives: http://zend-framework-community.634137.n4.nabble.com/ZF-Contributor-f680267.html
16 Subscribe: zf-contributors-subscribe@lists.zend.com
17 - ZF Contributor's IRC channel:
37856b4 @weierophinney Updated git instructions
weierophinney authored
18 #zftalk.dev on Freenode.net
3f424cf @Ocramius Converting plaintext documentation to markdown. Cleaning up markup, r…
Ocramius authored
19
20 If you are working on new features, or refactoring an existing
5825a11 @Maks3w More link updates
Maks3w authored
21 component, please create a proposal. You can do this in on the RFC's
22 page, http://framework.zend.com/wiki/display/ZFDEV2/RFC%27s.
3f424cf @Ocramius Converting plaintext documentation to markdown. Cleaning up markup, r…
Ocramius authored
23
24 ## RUNNING TESTS
25
26 To run tests:
27
37856b4 @weierophinney Updated git instructions
weierophinney authored
28 - Make sure you have a recent version of PHPUnit installed; 3.6.0
29 minimally.
30 - Enter the `tests/` subdirectory.
31 - Execute PHPUnit, providing a path to a component directory for which
32 you wish to run tests, or a specific test class file.
33
34 ```sh
35 % phpunit ZendTest/Http
36 % phpunit ZendTest/Http/Header/EtagTest.php
37 ```
38
39 - You may also provide the `--group` switch; in such cases, provide the
40 top-level component name:
41
42 ```sh
43 % phpunit --group Zend_Http
44 ```
45
46 This will likely lead to errors, so it's usually best to specify a
47 specific component in which to run test:
48
49 ```sh
50 % phpunit --group ZF-XYZ Zend/Http
51 ```
52 - Alternately, use the `run-tests.php` script. This can be executed with no
53 arguments to run all tests:
54
55 ```sh
56 % php run-tests.php
57 ```
58
59 You can also provide top-level component names to run tests for individual
60 components or several components at a time. The component name is the the
61 component namespace, without the `Zend\` prefix:
62
63 ```sh
64 % php run-tests Mvc
65 ```
66
67 ```sh
68 % php run-tests ModuleManager Mvc View Navigation
69 ```
598709d @coudenysj Fixed the phpunit examples (using an existing component and added a n…
coudenysj authored
70
3f424cf @Ocramius Converting plaintext documentation to markdown. Cleaning up markup, r…
Ocramius authored
71 You can turn on conditional tests with the TestConfiguration.php file.
72 To do so:
73
74 - Enter the `tests/` subdirectory.
75 - Copy `TestConfiguration.php.dist` file to `TestConfiguration.php`
76 - Edit `TestConfiguration.php` to enable any specific functionality you
77 want to test, as well as to provide test values to utilize.
Something went wrong with that request. Please try again.