File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,10 @@ public function test_resolver_prefix()
3535 $ driver = m::mock (stdClass::class);
3636 $ browser = new Browser ($ driver );
3737
38- $ browser ->within ($ component = new TestComponent , function ($ browser ) use ( $ component ) {
38+ $ browser ->within ($ component = new TestComponent , function ($ browser ) {
3939 $ this ->assertEquals ('body #component-root ' , $ browser ->resolver ->prefix );
4040
41- $ browser ->within ($ nested = new TestNestedComponent , function ($ browser ) use ( $ nested ) {
41+ $ browser ->within ($ nested = new TestNestedComponent , function ($ browser ) {
4242 $ this ->assertEquals ('body #component-root #nested-root ' , $ browser ->resolver ->prefix );
4343
4444 $ browser ->with ('prefix ' , function ($ browser ) {
@@ -75,7 +75,7 @@ public function test_component_elements()
7575 '@overridden-alias ' => '#not-overridden ' ,
7676 ], $ browser ->resolver ->elements );
7777
78- $ browser ->within ($ nested = new TestNestedComponent , function ($ browser ) use ( $ nested ) {
78+ $ browser ->within ($ nested = new TestNestedComponent , function ($ browser ) {
7979 $ this ->assertEquals ([
8080 '@nested-alias ' => '#nested-alias ' ,
8181 '@overridden-alias ' => '#overridden ' ,
You can’t perform that action at this time.
0 commit comments