@@ -114,41 +114,41 @@ public function it_matches_glob_wildcards_literally_in_character_classes(): void
114114 #[Test]
115115 public function it_matches_any_character_not_in_a_set (): void
116116 {
117- $ this ->assertTrue (Glob::match ('[^ abc] ' , 'x ' ));
118- $ this ->assertTrue (Glob::match ('[^ abc] ' , 'z ' ));
117+ $ this ->assertTrue (Glob::match ('[! abc] ' , 'x ' ));
118+ $ this ->assertTrue (Glob::match ('[! abc] ' , 'z ' ));
119119
120- $ this ->assertTrue (Glob::match ('[^ abc][^ xyz] ' , 'za ' ));
121- $ this ->assertTrue (Glob::match ('[^ abc][^ xyz] ' , 'ya ' ));
120+ $ this ->assertTrue (Glob::match ('[! abc][! xyz] ' , 'za ' ));
121+ $ this ->assertTrue (Glob::match ('[! abc][! xyz] ' , 'ya ' ));
122122
123- $ this ->assertTrue (Glob::match ('[^ abc]oo ' , 'foo ' ));
124- $ this ->assertTrue (Glob::match ('[^ abc]oo ' , 'zoo ' ));
123+ $ this ->assertTrue (Glob::match ('[! abc]oo ' , 'foo ' ));
124+ $ this ->assertTrue (Glob::match ('[! abc]oo ' , 'zoo ' ));
125125
126- $ this ->assertFalse (Glob::match ('[^ abc] ' , 'a ' ));
127- $ this ->assertFalse (Glob::match ('[^ abc] ' , 'b ' ));
128- $ this ->assertFalse (Glob::match ('[^ abc] ' , 'c ' ));
129- $ this ->assertFalse (Glob::match ('[^ abc]oo ' , 'boo ' ));
130- $ this ->assertFalse (Glob::match ('[^ abc][^ xyz] ' , 'cz ' ));
131- $ this ->assertFalse (Glob::match ('[^ abc][^ xyz] ' , 'foo ' ));
126+ $ this ->assertFalse (Glob::match ('[! abc] ' , 'a ' ));
127+ $ this ->assertFalse (Glob::match ('[! abc] ' , 'b ' ));
128+ $ this ->assertFalse (Glob::match ('[! abc] ' , 'c ' ));
129+ $ this ->assertFalse (Glob::match ('[! abc]oo ' , 'boo ' ));
130+ $ this ->assertFalse (Glob::match ('[! abc][! xyz] ' , 'cz ' ));
131+ $ this ->assertFalse (Glob::match ('[! abc][! xyz] ' , 'foo ' ));
132132 }
133133
134134 #[Test]
135135 public function it_matches_any_character_not_in_a_range (): void
136136 {
137- $ this ->assertTrue (Glob::match ('[^ a-c] ' , 'x ' ));
138- $ this ->assertTrue (Glob::match ('[^ a-c] ' , 'z ' ));
137+ $ this ->assertTrue (Glob::match ('[! a-c] ' , 'x ' ));
138+ $ this ->assertTrue (Glob::match ('[! a-c] ' , 'z ' ));
139139
140- $ this ->assertTrue (Glob::match ('[^ a-c][^ x-z] ' , 'za ' ));
141- $ this ->assertTrue (Glob::match ('[^ a-c][^ x-z] ' , 'ya ' ));
140+ $ this ->assertTrue (Glob::match ('[! a-c][! x-z] ' , 'za ' ));
141+ $ this ->assertTrue (Glob::match ('[! a-c][! x-z] ' , 'ya ' ));
142142
143- $ this ->assertTrue (Glob::match ('[^ a-c]oo ' , 'foo ' ));
144- $ this ->assertTrue (Glob::match ('[^ a-c]oo ' , 'zoo ' ));
143+ $ this ->assertTrue (Glob::match ('[! a-c]oo ' , 'foo ' ));
144+ $ this ->assertTrue (Glob::match ('[! a-c]oo ' , 'zoo ' ));
145145
146- $ this ->assertFalse (Glob::match ('[^ a-c] ' , 'a ' ));
147- $ this ->assertFalse (Glob::match ('[^ a-c] ' , 'b ' ));
148- $ this ->assertFalse (Glob::match ('[^ a-c] ' , 'c ' ));
149- $ this ->assertFalse (Glob::match ('[^ a-c]oo ' , 'boo ' ));
150- $ this ->assertFalse (Glob::match ('[^ a-c][^ x-z] ' , 'cz ' ));
151- $ this ->assertFalse (Glob::match ('[^ a-c][^ x-z] ' , 'foo ' ));
146+ $ this ->assertFalse (Glob::match ('[! a-c] ' , 'a ' ));
147+ $ this ->assertFalse (Glob::match ('[! a-c] ' , 'b ' ));
148+ $ this ->assertFalse (Glob::match ('[! a-c] ' , 'c ' ));
149+ $ this ->assertFalse (Glob::match ('[! a-c]oo ' , 'boo ' ));
150+ $ this ->assertFalse (Glob::match ('[! a-c][! x-z] ' , 'cz ' ));
151+ $ this ->assertFalse (Glob::match ('[! a-c][! x-z] ' , 'foo ' ));
152152 }
153153
154154 #[Test]
0 commit comments