-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7362c90
commit 7372585
Showing
4 changed files
with
73 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
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
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
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,34 @@ | ||
<?php declare(strict_types=1); | ||
|
||
use PHPUnit\Framework\TestCase; | ||
|
||
trait T3194 | ||
{ | ||
public function doSomethingElse(): bool | ||
{ | ||
return true; | ||
} | ||
} | ||
|
||
final class C3194 | ||
{ | ||
use T3194; | ||
|
||
public function doSomething(): bool | ||
{ | ||
return $this->doSomethingElse(); | ||
} | ||
} | ||
|
||
/** | ||
* @covers C3194 | ||
*/ | ||
final class Test3194 extends TestCase | ||
{ | ||
public function testOne(): void | ||
{ | ||
$o = new C; | ||
|
||
$this->assertTrue($o->doSomething()); | ||
} | ||
} |