diff --git a/WP_Mock/API/constant-mocks.php b/WP_Mock/API/constant-mocks.php index 7fd95952..5f514a46 100644 --- a/WP_Mock/API/constant-mocks.php +++ b/WP_Mock/API/constant-mocks.php @@ -33,10 +33,21 @@ } /** + * HHVM does not support case-insensitive constants. + * * @since 0.71 + * @see http://hhvm.com/blog/3095/getting-wordpress-running-on-hhvm */ if ( ! defined( 'OBJECT' ) ) { - define( 'OBJECT', 'OBJECT', true ); + define( 'OBJECT', 'OBJECT' ); +} + +if ( ! defined( 'Object' ) ) { + define( 'Object', 'OBJECT' ); +} + +if ( ! defined( 'object' ) ) { + define( 'object', 'OBJECT' ); } /** @@ -58,4 +69,4 @@ */ if ( ! defined( 'ARRAY_N' ) ) { define( 'ARRAY_N', 'ARRAY_N' ); -} \ No newline at end of file +}