guard-phpunit2 0.2.7 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 81d31e2b034295210e186676f0192edf353604e4
4
- data.tar.gz: 6b5f8d0593d418fc6ab4a3789fd6238ab18ac3c5
3
+ metadata.gz: 3a16be8b1d2ec405ff1fe94fa9fbcb4ef35be484
4
+ data.tar.gz: 26e55626cffb430aacb78b4a23306f865bef9a1e
5
5
  SHA512:
6
- metadata.gz: cd75f1a8826faff16feebdd4f98bcb3e9434a31c7f691685ff59dcaa5640f01394c495ffb5b9546ffd8d65166effd1f5a030278d993a5279c3bdadcca0ae9fe9
7
- data.tar.gz: dcf12bb176c68eb33dece74c8713b8688b1b77aa3273a808adfcb68d527e60ef0693c8bdd2728865994e16d333c5b1b9027b3f83623fbf276226f9dc6e635b8b
6
+ metadata.gz: ddb199b714863f6ad04ceeb5a679bced3b3c0084c3e76c6dd301f14c4d39dac956da90b11a57cc9510c05eff581b9af1ea0f69dfb9b606e2b0bdfba273d49b5d
7
+ data.tar.gz: 1141a9f175c2e1f3914a823c474da864432bcffa46363897686ee35d95d597387f25e9a55a82e60e495c5ea448e8f6f82a8f1643da5eca89b8aaf3097737c076
@@ -50,13 +50,15 @@ class PHPUnit_Extensions_Progress_ResultPrinter extends PHPUnit_TextUI_ResultPri
50
50
  }
51
51
 
52
52
  if ($this->verbose) {
53
- if ($result->deprecatedFeaturesCount() > 0) {
54
- if ($result->failureCount() > 0) {
55
- print "\n--\n\nDeprecated PHPUnit features are being used";
56
- }
57
-
58
- foreach ($result->deprecatedFeatures() as $deprecatedFeature) {
59
- $this->write($deprecatedFeature . "\n\n");
53
+ if (method_exists($result, 'deprecatedFeaturesCount')) {
54
+ if ($result->deprecatedFeaturesCount() > 0) {
55
+ if ($result->failureCount() > 0) {
56
+ print "\n--\n\nDeprecated PHPUnit features are being used";
57
+ }
58
+
59
+ foreach ($result->deprecatedFeatures() as $deprecatedFeature) {
60
+ $this->write($deprecatedFeature . "\n\n");
61
+ }
60
62
  }
61
63
  }
62
64
 
@@ -74,11 +76,12 @@ class PHPUnit_Extensions_Progress_ResultPrinter extends PHPUnit_TextUI_ResultPri
74
76
 
75
77
  /**
76
78
  * @param array $defects
77
- * @param integer $count
78
79
  * @param string $type
79
80
  */
80
- protected function printDefects(array $defects, $count, $type)
81
+ protected function printDefects(array $defects, $type)
81
82
  {
83
+ $count = count($defects);
84
+
82
85
  if ($count == 0) {
83
86
  return;
84
87
  }
@@ -296,21 +299,23 @@ class PHPUnit_Extensions_Progress_ResultPrinter extends PHPUnit_TextUI_ResultPri
296
299
  $this->write($this->red($footer));
297
300
  }
298
301
 
299
- if ( ! $this->verbose &&
300
- $result->deprecatedFeaturesCount() > 0 )
301
- {
302
- $message = sprintf(
303
- "Warning: Deprecated PHPUnit features are being used %s times!\n".
304
- "Use --verbose for more information.\n",
305
- $result->deprecatedFeaturesCount()
306
- );
302
+ if (method_exists($result, 'deprecatedFeaturesCount')) {
303
+ if ( ! $this->verbose &&
304
+ $result->deprecatedFeaturesCount() > 0 )
305
+ {
306
+ $message = sprintf(
307
+ "Warning: Deprecated PHPUnit features are being used %s times!\n".
308
+ "Use --verbose for more information.\n",
309
+ $result->deprecatedFeaturesCount()
310
+ );
311
+
312
+ if ($this->colors) {
313
+ $message = "\x1b[37;41m\x1b[2K" . $message .
314
+ "\x1b[0m";
315
+ }
307
316
 
308
- if ($this->colors) {
309
- $message = "\x1b[37;41m\x1b[2K" . $message .
310
- "\x1b[0m";
317
+ $this->write("\n" . $message);
311
318
  }
312
-
313
- $this->write("\n" . $message);
314
319
  }
315
320
 
316
321
  $this->writeNewLine();
@@ -427,8 +432,10 @@ class PHPUnit_Extensions_Progress_ResultPrinter extends PHPUnit_TextUI_ResultPri
427
432
  static $deletedHeader = false;
428
433
 
429
434
  if ( ! $deletedHeader ) {
430
- ob_end_clean();
431
- $deletedHeader = true;
435
+ if (ob_get_length() > 0) {
436
+ ob_end_clean();
437
+ $deletedHeader = true;
438
+ }
432
439
  }
433
440
 
434
441
  parent::writeProgress($progress);
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module PHPUnit2Version
3
- VERSION = '0.2.7'
3
+ VERSION = '0.2.8'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-phpunit2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maher Sallam
@@ -9,29 +9,8 @@ authors:
9
9
  - Marek Kalnik
10
10
  autorequire:
11
11
  bindir: bin
12
- cert_chain:
13
- - |
14
- -----BEGIN CERTIFICATE-----
15
- MIIDODCCAiCgAwIBAgIBAjANBgkqhkiG9w0BAQUFADBCMQ4wDAYDVQQDDAVyYW1v
16
- bjEbMBkGCgmSJomT8ixkARkWC2NvZGVjcmFmdDYzMRMwEQYKCZImiZPyLGQBGRYD
17
- Y29tMB4XDTE0MDQwMjEzMzEwOVoXDTE1MDQwMjEzMzEwOVowQjEOMAwGA1UEAwwF
18
- cmFtb24xGzAZBgoJkiaJk/IsZAEZFgtjb2RlY3JhZnQ2MzETMBEGCgmSJomT8ixk
19
- ARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANMe6/bxj0lU
20
- QJBEAPZg6YDvjo/by2I62ww7wUgd9Yh5gOFe0uxhrr4bOCRADhhC4icYow1NZ8Ju
21
- sGKhTGHRGg8G+btt4GjfuBKYylCyqwVc2okk4Ucqghn9ls2xMvchjGhQcz7cQWiZ
22
- XBfffGikJEwclkpdr4mRgm4TaBzkZUF029axX6YM7G5AbBcYfbHwSss+fLsXB1t9
23
- bU07BDLV6KSnFjn/6Gj9CrZpw3G0TCunTvB6UjcZIoBqXeWz6z9XJX+GhyaZGCjQ
24
- R1rXqqEfSRwsG31ibcTTFrqtoyTkzmz33h5LbMZZdLoMpeEFggkY0cQBUY4sGYK/
25
- jrbnzdwgwtsCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0O
26
- BBYEFIcHXF/pGBCu96efKVZ3eH10IgSxMA0GCSqGSIb3DQEBBQUAA4IBAQBVmXZf
27
- 1PL29cv73uxKHrIXMPIiUHwKW+8twzorMX+3BlYsQSq0OEOloHV4qHpEYtdOKTwt
28
- FKqX3EPTy7HVQpeQjTJRo8qeqD5xMnJAFve6deF4wH5vTtjpF6BQBN7OEFSlyywK
29
- q5TzllwektfgZuo6o6+TEZQRaTAuVioHFCyJ1SwmyNIHH5whXUlCWrurt7csbfnJ
30
- J1k3vWJjQrItZ60kgoi2rBCPx7qAJG/lZ8UQoCMJMAAXGzarUrWvK6CKd2d1phth
31
- tUGlQK5jGose4s/n5BjifxE3pKoirkrICQy813CvapcJDj5qAIFt3ZCEL/qiwrzY
32
- VGMazdO/EkS6KnJc
33
- -----END CERTIFICATE-----
34
- date: 2014-04-06 00:00:00.000000000 Z
12
+ cert_chain: []
13
+ date: 2015-04-22 00:00:00.000000000 Z
35
14
  dependencies:
36
15
  - !ruby/object:Gem::Dependency
37
16
  name: guard
@@ -222,7 +201,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
222
201
  version: 1.3.6
223
202
  requirements: []
224
203
  rubyforge_project: guard-phpunit2
225
- rubygems_version: 2.2.2
204
+ rubygems_version: 2.4.5
226
205
  signing_key:
227
206
  specification_version: 4
228
207
  summary: Guard gem for PHPUnit
checksums.yaml.gz.sig DELETED
@@ -1,2 +0,0 @@
1
- �ݚ��p�=�}/��(&��������;�7W�`�t�e�z����^}C����dʥxF&À{�#mҡV��X:x�|�]��gn��F��\�vO�bv�x� �ױ���+Z5O�K�zݬ��0B~�UW}�1-؃ ��f"e�6+кmP����E�.�Dm&���^��4|�\
2
- }qx?V�7F���x*tOb�?�OX��ֶ��d���P(r`�\�4,z��~L��H634�"1�/ e#��Y�cѮ·� �"w�
data.tar.gz.sig DELETED
@@ -1,2 +0,0 @@
1
- �Y����=O��D&��t���_�H�(*�ڨ�k�!$�4�����[h���a���� 0�k��6 ���D?_$�����X+�&U&��W�䙓�Y�Y6�t#w���f�G�&�A�
2
- ��ɿ�D�����7Hla�`�i��&��Κ��y�u:GI�d�ef GH>�)ij��F3�~�J��S��:�uyo�Q���3�Z�ʩ��cKg��<�Ni��)v�.T����HK�L�wqG�d�{W��2 F ��
metadata.gz.sig DELETED
Binary file