File tree Expand file tree Collapse file tree 4 files changed +11
-9
lines changed
Expand file tree Collapse file tree 4 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 11<?php
22namespace phpbu \App \Backup \Source ;
33
4+ use Exception ;
45use phpbu \App \Backup \CliMockery ;
56use phpbu \App \BaseMockery ;
67use PHPUnit \Framework \TestCase ;
@@ -113,8 +114,8 @@ public function testBackupFail()
113114
114115 try {
115116 $ influxd ->backup ($ target , $ appResult );
116- } catch (\ Exception $ e ) {
117- $ this ->assertFileNotExists ($ file );
117+ } catch (Exception $ e ) {
118+ $ this ->assertFileDoesNotExist ($ file );
118119 throw $ e ;
119120 }
120121 }
Original file line number Diff line number Diff line change 11<?php
22namespace phpbu \App \Backup \Source ;
33
4+ use Exception ;
45use phpbu \App \Backup \CliMockery ;
56use phpbu \App \BaseMockery ;
67use PHPUnit \Framework \TestCase ;
@@ -198,8 +199,8 @@ public function testBackupFail()
198199
199200 try {
200201 $ ldap ->backup ($ target , $ appResult );
201- } catch (\ Exception $ e ) {
202- $ this ->assertFileNotExists ($ file );
202+ } catch (Exception $ e ) {
203+ $ this ->assertFileDoesNotExist ($ file );
203204 throw $ e ;
204205 }
205206 }
Original file line number Diff line number Diff line change @@ -338,7 +338,7 @@ public function testBackupFail()
338338 try {
339339 $ mysqldump ->backup ($ target , $ appResult );
340340 } catch (Exception $ e ) {
341- $ this ->assertFileNotExists ($ file );
341+ $ this ->assertFileDoesNotExist ($ file );
342342 throw $ e ;
343343 }
344344 }
Original file line number Diff line number Diff line change @@ -181,10 +181,10 @@ public function testRemoveDir()
181181
182182 Cli::removeDir ($ dirToDelete );
183183
184- $ this ->assertFileNotExists ($ file );
185- $ this ->assertFileNotExists ($ fileInSub );
186- $ this ->assertFileNotExists ($ subDir );
187- $ this ->assertFileNotExists ($ dirToDelete );
184+ $ this ->assertFileDoesNotExist ($ file );
185+ $ this ->assertFileDoesNotExist ($ fileInSub );
186+ $ this ->assertFileDoesNotExist ($ subDir );
187+ $ this ->assertFileDoesNotExist ($ dirToDelete );
188188 }
189189
190190 /**
You can’t perform that action at this time.
0 commit comments