Skip to content

Commit d66b3f6

Browse files
committed
Extend phpactor test case
1 parent b6a0cc0 commit d66b3f6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/Integration/IntegrationTestCase.php

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

33
namespace Phpactor\TestUtils\Tests\Integration;
44

5-
use PHPUnit\Framework\TestCase;
5+
use Phpactor\TestUtils\PHPUnit\TestCase;
66

77
class IntegrationTestCase extends TestCase
88
{
9-
protected function workspaceDir()
9+
protected function workspaceDir(): string
1010
{
1111
return realpath(__DIR__ . '/..') . '/Workspace';
1212
}

tests/Unit/ExtractOffsetTest.php

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

33
namespace Phpactor\TestUtils\Tests\Unit;
44

5-
use PHPUnit\Framework\TestCase;
65
use Phpactor\TestUtils\ExtractOffset;
6+
use Phpactor\TestUtils\PHPUnit\TestCase;
77

88
class ExtractOffsetTest extends TestCase
99
{
10-
public function testExtractOffset()
10+
public function testExtractOffset(): void
1111
{
1212
list($source, $offset) = ExtractOffset::fromSource('<?php class Foobar { <> }');
1313
$this->assertEquals(21, $offset);

0 commit comments

Comments
 (0)