Skip to content

Commit 400e0c2

Browse files
committed
Remove fixturePath which is initialized after data provider
1 parent fce48ad commit 400e0c2

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

src/HttpAdapterTest.php

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@
2222
*/
2323
abstract class HttpAdapterTest extends \PHPUnit_Framework_TestCase
2424
{
25-
/**
26-
* @var string
27-
*/
28-
private static $fixturePath;
29-
3025
/**
3126
* @var string
3227
*/
@@ -47,7 +42,6 @@ abstract class HttpAdapterTest extends \PHPUnit_Framework_TestCase
4742
*/
4843
public static function setUpBeforeClass()
4944
{
50-
self::$fixturePath = realpath(__DIR__.'/../fixture');
5145
self::$logPath = PHPUnitUtility::getFile(true, 'php-http-adapter.log');
5246
}
5347

@@ -694,11 +688,13 @@ private function getData()
694688
*/
695689
private function getFiles()
696690
{
691+
$fixturePath = realpath(__DIR__.'/../fixture/files');
692+
697693
return [
698-
'file1' => [self::$fixturePath.'/files/file1.txt'],
694+
'file1' => [$fixturePath.'/file1.txt'],
699695
'file2' => [
700-
self::$fixturePath.'/files/file2.txt',
701-
[self::$fixturePath.'/files/file3.txt'],
696+
$fixturePath.'/file2.txt',
697+
[$fixturePath.'/file3.txt'],
702698
],
703699
];
704700
}

0 commit comments

Comments
 (0)