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

namespace League\Csv\Test;

use PHPUnit_Framework_TestCase;

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');
            }
        }
    }
}