| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 48 | public function testTimeZone() |
||
| 49 | { |
||
| 50 | self::assertEquals( |
||
| 51 | (new \DateTimeZone(date_default_timezone_get()))->getName(), |
||
| 52 | $this->watcher->getTimeZone()->getName() |
||
| 53 | ); |
||
| 54 | |||
| 55 | $this->watcher->setTimeZone(1); |
||
| 56 | self::assertEquals('Europe/London', $this->watcher->getTimeZone()->getName()); |
||
| 57 | |||
| 58 | $this->watcher->setTimeZone('Europe/Madrid'); |
||
| 59 | self::assertEquals('Europe/Madrid', $this->watcher->getTimeZone()->getName()); |
||
| 60 | } |
||
| 61 | } |
||
| 62 |
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..