| Total Complexity | 2 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class DateFormatterBasicTest extends \PHPUnit_Framework_TestCase |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var DotnetDateTime |
||
| 14 | */ |
||
| 15 | private $dotnetDateTime; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var DateFormatterBasic |
||
| 19 | */ |
||
| 20 | private $formatter; |
||
| 21 | |||
| 22 | public function setUp() |
||
| 23 | { |
||
| 24 | $this->dotnetDateTime = m::mock(DotnetDateTime::class); |
||
|
|
|||
| 25 | $this->formatter = new DateFormatterBasic($this->dotnetDateTime); |
||
| 26 | } |
||
| 27 | |||
| 28 | public function testFormat() |
||
| 51 | } |
||
| 52 | } |
||
| 53 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..