Skip to content

Commit 7fc5c1b

Browse files
committed
Reproduced issue: Property SpecifyTest::$beforeSpecify does not exist
1 parent dbbdfde commit 7fc5c1b

File tree

6 files changed

+15
-10
lines changed

6 files changed

+15
-10
lines changed

phpunit.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<phpunit colors="true">
1+
<phpunit colors="true"
2+
bootstrap="tests/_bootstrap.php">
23
<testsuites>
34
<testsuite name="Specify">
45
<directory>tests</directory>

tests/ConfigTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
2-
require_once __DIR__.'/../vendor/autoload.php';
32

4-
class ConfigTest extends \PHPUnit_Framework_TestCase
3+
class ConfigTest extends \SpecifyUnitTester
54
{
65
/**
76
* @var \Codeception\Specify\Config

tests/ObjectPropertyTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
2-
require_once __DIR__.'/../vendor/autoload.php';
32

4-
class ObjectPropertyTest extends \PHPUnit_Framework_TestCase
3+
class ObjectPropertyTest extends \SpecifyUnitTester
54
{
65
private $private = 'private';
76

tests/SpecifyTest.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
<?php
2-
require_once __DIR__.'/../vendor/autoload.php';
3-
4-
class SpecifyTest extends \PHPUnit_Framework_TestCase {
5-
6-
use Codeception\Specify;
72

3+
class SpecifyTest extends \SpecifyUnitTester
4+
{
85
protected $user;
96
protected $a;
107

tests/_bootstrap.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
require_once __DIR__.'/../vendor/autoload.php';
3+
require_once __DIR__ . '/_support/SpecifyUnitTester.php';

tests/_support/SpecifyUnitTester.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
3+
class SpecifyUnitTester extends \PHPUnit_Framework_TestCase
4+
{
5+
use Codeception\Specify;
6+
}

0 commit comments

Comments
 (0)