1313
1414use PHPUnit \Framework \TestCase ;
1515use Rollerworks \Component \PasswordStrength \Blacklist \SqliteProvider ;
16+ use Symfony \Bridge \PhpUnit \SetUpTearDownTrait ;
1617
1718class SqliteProviderTest extends TestCase
1819{
20+ use SetUpTearDownTrait;
21+
1922 /**
2023 * @var string
2124 */
@@ -26,7 +29,7 @@ class SqliteProviderTest extends TestCase
2629 */
2730 protected static $ provider ;
2831
29- public static function setUpBeforeClass ()
32+ public static function doSetUpBeforeClass ()
3033 {
3134 if (!class_exists ('SQLite3 ' ) && (!class_exists ('PDO ' ) || !in_array ('sqlite ' , \PDO ::getAvailableDrivers (), true ))) {
3235 self ::markTestSkipped ('This test requires SQLite support in your environment ' );
@@ -40,7 +43,7 @@ public static function setUpBeforeClass()
4043 self ::$ provider = new SqliteProvider ('sqlite: ' .self ::$ dbFile );
4144 }
4245
43- public static function tearDownAfterClass ()
46+ public static function doTearDownAfterClass ()
4447 {
4548 @unlink (self ::$ dbFile );
4649 }
@@ -84,7 +87,7 @@ public function testPurge()
8487 self ::assertTrue (self ::$ provider ->isBlacklisted ('test ' ));
8588 }
8689
87- protected function setUp ()
90+ protected function doSetUp ()
8891 {
8992 if (!class_exists ('SQLite3 ' ) && (!class_exists ('PDO ' ) || !in_array ('sqlite ' , \PDO ::getAvailableDrivers (), true ))) {
9093 $ this ->markTestSkipped ('This test requires SQLite support in your environment ' );
0 commit comments