-
-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add mock object test fixture (#5335)
* add mock object test fixture * mock
- Loading branch information
1 parent
79c57f0
commit b6f53b9
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...claration/Rector/Property/TypedPropertyFromStrictSetUpRector/Fixture/include_mock.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\TypeDeclaration\Rector\Property\TypedPropertyFromStrictSetUpRector\Fixture; | ||
|
||
use PHPUnit\Framework\TestCase; | ||
|
||
final class IncludeMock extends TestCase | ||
{ | ||
private $value; | ||
|
||
public function setUp(): void | ||
{ | ||
parent::setUp(); | ||
|
||
$this->value = $this->createMock(\stdClass::class); | ||
} | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\TypeDeclaration\Rector\Property\TypedPropertyFromStrictSetUpRector\Fixture; | ||
|
||
use PHPUnit\Framework\TestCase; | ||
|
||
final class IncludeMock extends TestCase | ||
{ | ||
private \PHPUnit\Framework\MockObject\MockObject $value; | ||
|
||
public function setUp(): void | ||
{ | ||
parent::setUp(); | ||
|
||
$this->value = $this->createMock(\stdClass::class); | ||
} | ||
} | ||
|
||
?> |