Improve test compatibility (PHP 5.2)

This commit is contained in:
Jon Surrell 2016-12-16 21:37:58 +01:00
parent 2ae1bc1ab2
commit b94d029546
1 changed files with 2 additions and 2 deletions

View File

@ -247,8 +247,8 @@ class WC_Tests_Core_Functions extends WC_Unit_Test_Case {
$log_a = wc_get_logger();
$log_b = wc_get_logger();
$this->assertInstanceOf( WC_Logger::class, $log_a );
$this->assertInstanceOf( WC_Logger::class, $log_b );
$this->assertInstanceOf( 'WC_Logger', $log_a );
$this->assertInstanceOf( 'WC_Logger', $log_b );
$this->assertSame( $log_a, $log_b, '`wc_get_logger()` should return the same instance' );
}