spec/unit/Onebip/DateTime/UTCDateTimeRangeTest.php
/**
     * @expectedException DomainException
     * @expectedExceptionMessage can't reverse an open range
     */
@expectedException DomainException
@expectedExceptionMessage can't reverse an open range
@expectedException DomainException @expectedExceptionMessage can ' t reverse an open range
public function testImpossibleReverse()
    {
        $this->assertEquals(
            UTCDateTimeRange::fromIncludedToExcluded(
                UTCDateTime::box('2015-01-01 03:00:00.123456'),
                UTCDateTime::box('2015-04-01 05:00:00.123456')
            ),
            UTCDateTimeRange::fromIncludedToExcluded(
                UTCDateTime::box('2015-04-01 05:00:00.123456'),
                UTCDateTime::box('2015-01-01 03:00:00.123456')
            )->reverse()
        );
    }
public function testImpossibleReverse ( ) { $ this -> assertEquals ( UTCDateTimeRange :: fromIncludedToExcluded ( UTCDateTime :: box ( '2015-01-01 03:00:00.123456' ) , UTCDateTime :: box ( '2015-04-01 05:00:00.123456' ) ) , UTCDateTimeRange :: fromIncludedToExcluded ( UTCDateTime :: box ( '2015-04-01 05:00:00.123456' ) , UTCDateTime :: box ( '2015-01-01 03:00:00.123456' ) ) -> reverse ( ) ) ; }
@expectedException DomainException
 @expectedExceptionMessage can't reverse an open range
@expectedException DomainException @expectedExceptionMessage can ' t reverse an open range