Skip to content

Commit

Permalink
Added proper skip
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoppanen committed Oct 11, 2013
1 parent fb1806a commit 4f7dc08
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions tests/033-disconnect.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
Test disconnect
--SKIPIF--
<?php
require_once(dirname(__FILE__) . '/skipif.inc');
if(!method_exists(array ('zmqsocket', 'disconnect')) die('skip');
require_once(dirname(__FILE__) . '/skipif.inc');

if (!in_array ('disconnect', get_class_methods ('zmqsocket')))
die ('skip disconnect not supported in libzmq version');
?>
--FILE--
<?php
Expand Down
3 changes: 2 additions & 1 deletion tests/034-unbind.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ Test unbind
--SKIPIF--
<?php
require_once(dirname(__FILE__) . '/skipif.inc');
if(!method_exists(array ('zmqsocket', 'unbind')) die('skip');
if (!in_array ('unbind', get_class_methods ('zmqsocket')))
die ('skip unbind not supported in libzmq version');
?>
--FILE--
<?php
Expand Down

0 comments on commit 4f7dc08

Please sign in to comment.