Skip to content

Conversation

@carusogabriel carusogabriel changed the title Add SKIPIF section for not always available functions [WIP] Add SKIPIF section for not always available functions Feb 4, 2018
@carusogabriel carusogabriel changed the title [WIP] Add SKIPIF section for not always available functions Add SKIPIF section for not always available functions Feb 8, 2018
@carusogabriel
Copy link
Contributor Author

Removed [WIP], so Waiting on Review 😄

--SKIPIF--
<?php if (!is_executable('/bin/cat')) echo 'skip cat not found'; ?>
<?php
if (!is_executable('/bin/cat')) echo 'skip cat not found';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any difference between echo 'skip not found'; and die 'skip proc_open..' ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@staabm The only one that I know is, with we run the generated test.sh, it would break. die would return the message and kill the script.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should echo or die be unified ?

Copy link
Contributor Author

@carusogabriel carusogabriel Feb 22, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@staabm Sure it does, SKIPIF should use die. QA recommends this already.

I'm waiting for this one, related to unifying requirement for skipif.inc, then we can unify this as well 😄

@carusogabriel carusogabriel deleted the skipif-functions branch July 29, 2018 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants