guard-phpunit 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +18 -12
- data/lib/guard/phpunit.rb +1 -1
- data/lib/guard/phpunit/version.rb +1 -1
- metadata +59 -26
data/README.md
CHANGED
@@ -1,23 +1,28 @@
|
|
1
1
|
Guard::PHPUnit [![Build Status](https://secure.travis-ci.org/Maher4Ever/guard-phpunit.png)](http://travis-ci.org/Maher4Ever/guard-phpunit) [![Dependency Status](https://gemnasium.com/Maher4Ever/guard-phpunit.png?branch=master)](https://gemnasium.com/Maher4Ever/guard-phpunit)
|
2
2
|
==============
|
3
3
|
|
4
|
-
|
5
|
-
are modified.
|
4
|
+
Guard-phpunit allows you to automatically run [PHPUnit][6] tests when sources
|
5
|
+
are modified. It helps with integrating test-driven development (TDD) into
|
6
|
+
your development process: Just launch guard-phpunit before you start working
|
7
|
+
and it will notify you about the status of your tests!
|
6
8
|
|
7
|
-
|
9
|
+
*Note*: Although guard-phpunit should work with any [PHP][7] version [PHPUnit][6] supports,
|
10
|
+
it has only been tested on [PHP][7] 5.3.8 and 5.4.4.
|
8
11
|
|
9
12
|
Install
|
10
13
|
-------
|
11
14
|
|
12
|
-
Please be sure to have [Ruby][1]
|
13
|
-
|
14
|
-
install various packages, including PHPUnit guard.
|
15
|
+
Please be sure to have [PHP][7], [PHPUnit][6] and [Ruby][1] installed on your machine before
|
16
|
+
you proceed with the installation.
|
15
17
|
|
16
|
-
|
18
|
+
The latest versions of [Ruby][1] come with a packages-manager called `gem`. `gem` can be used to
|
19
|
+
install various packages, including guard-phpunit.
|
17
20
|
|
18
|
-
To install
|
21
|
+
To install guard-phpunit, run the following command in the terminal:
|
19
22
|
|
20
|
-
|
23
|
+
```shell
|
24
|
+
$ gem install guard-phpunit
|
25
|
+
```
|
21
26
|
|
22
27
|
Usage
|
23
28
|
-----
|
@@ -27,11 +32,11 @@ Please read the [Guard usage documentation][3].
|
|
27
32
|
Guardfile
|
28
33
|
---------
|
29
34
|
|
30
|
-
Guard
|
35
|
+
Guard-phpunit can be used with any kind of [PHP][7] projects that uses PHPUnit as
|
31
36
|
its testing framwork. Please read the [Guard documentation][3] for more information
|
32
37
|
about the Guardfile DSL.
|
33
38
|
|
34
|
-
By default,
|
39
|
+
By default, guard-phpunit will use the current working directory (pwd) to
|
35
40
|
search for tests and run them on start (if you enabled the `:all_on_start` option).
|
36
41
|
|
37
42
|
### Example PHP project
|
@@ -94,7 +99,8 @@ Author
|
|
94
99
|
[Maher Sallam](https://github.com/Maher4Ever)
|
95
100
|
|
96
101
|
[1]:http://ruby-lang.org
|
97
|
-
[2]:https://github.com/guard/guard
|
98
102
|
[3]:https://github.com/guard/guard#readme
|
99
103
|
[4]:http://www.phpunit.de/manual/current/en/
|
100
104
|
[5]:https://github.com/sebastianbergmann/php-object-freezer/
|
105
|
+
[6]:http://www.phpunit.de
|
106
|
+
[7]:http://php.net
|
data/lib/guard/phpunit.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-phpunit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,74 +9,104 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-06-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: guard
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.
|
21
|
+
version: '1.1'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.1'
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: bundler
|
27
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
28
33
|
none: false
|
29
34
|
requirements:
|
30
|
-
- -
|
35
|
+
- - ! '>='
|
31
36
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
37
|
+
version: '0'
|
33
38
|
type: :development
|
34
39
|
prerelease: false
|
35
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
36
46
|
- !ruby/object:Gem::Dependency
|
37
47
|
name: rspec
|
38
|
-
requirement:
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
39
49
|
none: false
|
40
50
|
requirements:
|
41
|
-
- -
|
51
|
+
- - ! '>='
|
42
52
|
- !ruby/object:Gem::Version
|
43
|
-
version:
|
53
|
+
version: '0'
|
44
54
|
type: :development
|
45
55
|
prerelease: false
|
46
|
-
version_requirements:
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
47
62
|
- !ruby/object:Gem::Dependency
|
48
63
|
name: guard-rspec
|
49
|
-
requirement:
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
50
65
|
none: false
|
51
66
|
requirements:
|
52
|
-
- -
|
67
|
+
- - ! '>='
|
53
68
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0
|
69
|
+
version: '0'
|
55
70
|
type: :development
|
56
71
|
prerelease: false
|
57
|
-
version_requirements:
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
58
78
|
- !ruby/object:Gem::Dependency
|
59
79
|
name: yard
|
60
|
-
requirement:
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
61
81
|
none: false
|
62
82
|
requirements:
|
63
|
-
- -
|
83
|
+
- - ! '>='
|
64
84
|
- !ruby/object:Gem::Version
|
65
|
-
version: 0
|
85
|
+
version: '0'
|
66
86
|
type: :development
|
67
87
|
prerelease: false
|
68
|
-
version_requirements:
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
69
94
|
- !ruby/object:Gem::Dependency
|
70
95
|
name: redcarpet
|
71
|
-
requirement:
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
72
97
|
none: false
|
73
98
|
requirements:
|
74
|
-
- -
|
99
|
+
- - ! '>='
|
75
100
|
- !ruby/object:Gem::Version
|
76
|
-
version:
|
101
|
+
version: '0'
|
77
102
|
type: :development
|
78
103
|
prerelease: false
|
79
|
-
version_requirements:
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
80
110
|
description: Guard::PHPUnit automatically run your unit-tests written with the PHPUnit
|
81
111
|
testing framework.
|
82
112
|
email:
|
@@ -107,6 +137,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
107
137
|
- - ! '>='
|
108
138
|
- !ruby/object:Gem::Version
|
109
139
|
version: '0'
|
140
|
+
segments:
|
141
|
+
- 0
|
142
|
+
hash: -843194673
|
110
143
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
111
144
|
none: false
|
112
145
|
requirements:
|
@@ -115,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
148
|
version: 1.3.6
|
116
149
|
requirements: []
|
117
150
|
rubyforge_project: guard-phpunit
|
118
|
-
rubygems_version: 1.8.
|
151
|
+
rubygems_version: 1.8.24
|
119
152
|
signing_key:
|
120
153
|
specification_version: 3
|
121
154
|
summary: Guard gem for PHPUnit
|