summaryrefslogtreecommitdiffstats
path: root/test/AbstractTestCase.php
blob: a8280b7791e8753f9acb69cbc326e891652ac53d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php

namespace League\Csv\Test;

use PHPUnit_Framework_TestCase;

/**
 * @group controls
 */
class AbstractTestCase extends PHPUnit_Framework_TestCase
{
    protected function checkRequirements()
    {
        parent::checkRequirements();
        $annotations = $this->getAnnotations();
        foreach ($annotations as $type => $bag) {
            if (!array_key_exists('skipIfHHVM', $bag)) {
                continue;
            }
            if (defined('HHVM_VERSION')) {
                $this->markTestSkipped('This test does not run on HHVM');
            }
        }
    }
}