Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Commit 43bed45

Browse files
committed
Support Codeception 2.6 in 7.1 branch
1 parent 3c0da1e commit 43bed45

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: php
22

33
env:
4-
CODECEPTION_VERSION: '2.5.x-dev'
4+
CODECEPTION_VERSION: '2.6.x-dev'
55

66
php:
77
- 7.1

src/TestCase.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?php
2+
3+
namespace Codeception\PHPUnit;
4+
5+
6+
abstract class TestCase extends \PHPUnit\Framework\TestCase
7+
{
8+
9+
protected function setUp()
10+
{
11+
if (method_exists($this, '_setUp')) {
12+
$this->_setUp();
13+
}
14+
}
15+
16+
protected function tearDown()
17+
{
18+
if (method_exists($this, '_tearDown')) {
19+
$this->_tearDown();
20+
}
21+
}
22+
23+
public static function setUpBeforeClass()
24+
{
25+
if (method_exists(get_called_class(), '_setUpBeforeClass')) {
26+
static::_setUpBeforeClass();
27+
}
28+
}
29+
30+
public static function tearDownAfterClass()
31+
{
32+
if (method_exists(get_called_class(), '_tearDownAfterClass')) {
33+
static::_tearDownAfterClass();
34+
}
35+
}
36+
}

0 commit comments

Comments
 (0)