It seems like $this->getMockForAbstrac...stractScheduled::class) of type object<PHPUnit_Framework_MockObject_MockObject> is incompatible with the declared type object<Janitor\Watcher\S...uled\AbstractScheduled> of property $watcher.
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..
Loading history...
30
}
31
32
/**
33
* @expectedException \InvalidArgumentException
34
*/
35
public function testBadTimeZoneName()
36
{
37
$this->watcher->setTimeZone('World/Unknown');
38
}
39
40
/**
41
* @expectedException \InvalidArgumentException
42
*/
43
public function testBadTimeZoneOffset()
44
{
45
$this->watcher->setTimeZone(158622);
46
}
47
48
public function testTimeZone()
49
{
50
self::assertEquals(
51
(new \DateTimeZone(date_default_timezone_get()))->getName(),
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..