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
2 people authored and GaryJones committed Apr 17, 2020
1 parent b5c39a4 commit 40f63bc
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 40f63bc

Please sign in to comment.