File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1212namespace Symfony \Component \Finder \Tests ;
1313
1414use Symfony \Component \Finder \Adapter \AdapterInterface ;
15- use Symfony \Component \Finder \Adapter \GnuFindAdapter ;
1615use Symfony \Component \Finder \Adapter \PhpAdapter ;
1716use Symfony \Component \Finder \Finder ;
1817
@@ -610,15 +609,15 @@ public function testAdapterSelection()
610609 {
611610 // test that by default, PhpAdapter is selected
612611 $ adapters = Finder::create ()->getAdapters ();
613- $ this ->assertTrue ( $ adapters [0 ] instanceof PhpAdapter );
612+ $ this ->assertInstanceOf ( ' Symfony\Component\Finder\Adapter\PhpAdapter ' , $ adapters [0 ]);
614613
615614 // test another adapter selection
616615 $ adapters = Finder::create ()->setAdapter ('gnu_find ' )->getAdapters ();
617- $ this ->assertTrue ( $ adapters [0 ] instanceof GnuFindAdapter );
616+ $ this ->assertInstanceOf ( ' Symfony\Component\Finder\Adapter\GnuFindAdapter ' , $ adapters [0 ]);
618617
619618 // test that useBestAdapter method removes selection
620619 $ adapters = Finder::create ()->useBestAdapter ()->getAdapters ();
621- $ this ->assertFalse ( $ adapters [0 ] instanceof PhpAdapter );
620+ $ this ->assertNotInstanceOf ( ' Symfony\Component\Finder\Adapter\PhpAdapter ' , $ adapters [0 ]);
622621 }
623622
624623 public function getTestPathData ()
You can’t perform that action at this time.
0 commit comments