spec/unit/Onebip/DateTime/UTCDateTimeTest.php
/**
     * @expectedException InvalidArgumentException
     * @expectedExceptionMessage usecs must be within 0 and 999999, got 1000000
     */
@expectedException InvalidArgumentException
@expectedExceptionMessage usecs must be within 0 and 999999, got 1000000
@expectedException InvalidArgumentException @expectedExceptionMessage usecs must be within 0 and 999999 got 1000000
public function testUsecGreaterThanRange()
    {
        UTCDateTime::box('2015-01-01')
            ->withUsec(1000000);
    }
public function testUsecGreaterThanRange ( ) { UTCDateTime :: box ( '2015-01-01' ) -> withUsec ( 1000000 ) ; }
@expectedException InvalidArgumentException
 @expectedExceptionMessage usecs must be within 0 and 999999, got 1000000
@expectedException InvalidArgumentException @expectedExceptionMessage usecs must be within 0 and 999999 got 1000000