Skip to content

Instantly share code, notes, and snippets.

@DavertMik
Created January 16, 2013 09:45
Show Gist options
  • Save DavertMik/4545952 to your computer and use it in GitHub Desktop.
Save DavertMik/4545952 to your computer and use it in GitHub Desktop.
Codeception: How to skip tests according to environment.
<?php
namespace Codeception\Module;
class WebHelper extends \Codeception\Module
{
// skip tests for PHP 5.3
public function _before(\Codeception\TestCase $test) {
if (floatval(phpversion()) == '5.3') $test->markTestSkipped();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment