Skip to content

Commit

Permalink
Namespace should be backslash rather than forward slash on unit test
Browse files Browse the repository at this point in the history
Co-Authored-By: Juliette <[email protected]>
  • Loading branch information
rebeccahum and jrfnl authored Aug 28, 2019
1 parent 57a05d2 commit c238bd5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if ( ! defined( WPCOM_VIP ) ) { // Error.
define( WPCOM_VIP ); // Error.
}

namespace Foo/Bar;
namespace Foo\Bar;
const REST_ALLOWED_META_PREFIXES = [ 'foo-', 'bar-', 'baz-' ];
if ( defined( __NAMESPACE__ . '\REST_ALLOWED_META_PREFIXES' ) && in_array( 'foo-', REST_ALLOWED_META_PREFIXES, true ) ) { // Ok.
define( __NAMESPACE__ . REST_ALLOWED_META_PREFIXES ); // Error.
Expand Down

0 comments on commit c238bd5

Please sign in to comment.