public function skipIfNotUnix() { $env = new UnixEnvironment(); if (!in_array(PHP_OS, $env->getSupportedList())) { $this->markTestSkipped('Tests requires Unix operating system'); } }
public function testPathOverride() { $this->skipIfNotUnix(); $paths = array(realpath(getcwd() . '/tests/commands/unix')); $env = new UnixEnvironment($paths); $valid = $env->validateCommand('test_binary'); $this->assertSame(true, $valid); }