/** * @expectedException \Webiny\Component\StdLib\StdObject\StdObjectException * @expectedExceptionMessage Invalid format m for getYear */ public function testGetYear2() { $dt = new DateTimeObject('14.02.2013'); $this->assertSame("13", $dt->getYear('m')); }