Skip to content

Commit ad94064

Browse files
committed
Tests extend \Codeception\PHPUnit\TestCase
1 parent f89fac6 commit ad94064

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
"php": ">= 7.0",
1313
"phpunit/phpunit": "> 6.0"
1414
},
15+
"require-dev": {
16+
"codeception/phpunit-wrapper": ">6.0.15 <6.1.0 | ^6.6.1 | ^7.7.1 | ^8.0.4"
17+
},
1518
"autoload": {
1619
"files": ["src/Codeception/function.php"],
1720
"psr-4":{

tests/OverrideTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?php
22
include __DIR__.'/../vendor/autoload.php';
33

4-
class OverrideTest extends \PHPUnit\Framework\TestCase
4+
class OverrideTest extends \Codeception\PHPUnit\TestCase
55
{
6-
protected function setUp()
6+
protected function _setUp()
77
{
88

99
}
1010

11-
protected function tearDown()
11+
protected function _tearDown()
1212
{
1313
\Codeception\Verify::$override = false;
1414
}

tests/VerifyTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
include_once __DIR__.'/../src/Codeception/function.php';
44

5-
class VerifyTest extends PHPUnit\Framework\TestCase {
5+
class VerifyTest extends \Codeception\PHPUnit\TestCase {
66

77
protected $xml;
88

9-
protected function setUp()
9+
protected function _setUp()
1010
{
1111
$this->xml = new DomDocument;
1212
$this->xml->loadXML('<foo><bar>Baz</bar><bar>Baz</bar></foo>');

0 commit comments

Comments
 (0)