Cant use ::CLASS in php 5.2

This commit is contained in:
Claudiu Lodromanean 2017-03-14 08:42:08 -07:00
parent 76536688e2
commit e929a7fd17
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ class WC_Tests_Coupon extends WC_Unit_Test_Case {
$expired_coupon->set_date_created( time() - 20 );
$expired_coupon->set_date_modified( time() - 20 );
$this->assertInstanceOf( WC_DateTime::class, $valid_coupon->get_date_created() );
$this->assertInstanceOf( 'WC_DateTime', $valid_coupon->get_date_created() );
$this->assertTrue( $valid_coupon->is_valid() );
$this->assertFalse( $expired_coupon->is_valid() );
$this->assertEquals( $expired_coupon->get_error_message(), $expired_coupon->get_coupon_error( WC_Coupon::E_WC_COUPON_EXPIRED ) );