File tree 1 file changed +3
-4
lines changed
src/Symfony/Component/Finder/Tests
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Finder \Tests ;
13
13
14
14
use Symfony \Component \Finder \Adapter \AdapterInterface ;
15
- use Symfony \Component \Finder \Adapter \GnuFindAdapter ;
16
15
use Symfony \Component \Finder \Adapter \PhpAdapter ;
17
16
use Symfony \Component \Finder \Finder ;
18
17
@@ -610,15 +609,15 @@ public function testAdapterSelection()
610
609
{
611
610
// test that by default, PhpAdapter is selected
612
611
$ adapters = Finder::create ()->getAdapters ();
613
- $ this ->assertTrue ( $ adapters [0 ] instanceof PhpAdapter );
612
+ $ this ->assertInstanceOf ( ' Symfony\Component\Finder\Adapter\PhpAdapter ' , $ adapters [0 ]);
614
613
615
614
// test another adapter selection
616
615
$ adapters = Finder::create ()->setAdapter ('gnu_find ' )->getAdapters ();
617
- $ this ->assertTrue ( $ adapters [0 ] instanceof GnuFindAdapter );
616
+ $ this ->assertInstanceOf ( ' Symfony\Component\Finder\Adapter\GnuFindAdapter ' , $ adapters [0 ]);
618
617
619
618
// test that useBestAdapter method removes selection
620
619
$ adapters = Finder::create ()->useBestAdapter ()->getAdapters ();
621
- $ this ->assertFalse ( $ adapters [0 ] instanceof PhpAdapter );
620
+ $ this ->assertNotInstanceOf ( ' Symfony\Component\Finder\Adapter\PhpAdapter ' , $ adapters [0 ]);
622
621
}
623
622
624
623
public function getTestPathData ()
You can’t perform that action at this time.
0 commit comments