File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public function testCall(): void
2626
2727 $ result = $ this ->callCommand (new GenerateCommand ($ this ->getConfiguration ()), $ input );
2828
29- $ this ->assertStringContainsString ('Finished regenerating DAOs and beans ' , $ result );
29+ $ this ->assertContains ('Finished regenerating DAOs and beans ' , $ result );
3030 }
3131
3232 /**
Original file line number Diff line number Diff line change 8989use TheCodingMachine \TDBM \Utils \PathFinder \PathFinder ;
9090use TheCodingMachine \TDBM \Utils \TDBMDaoGenerator ;
9191use Symfony \Component \Process \Process ;
92+ use function gettype ;
9293
9394class TDBMDaoGeneratorTest extends TDBMAbstractServiceTest
9495{
@@ -1727,7 +1728,7 @@ public function testBlob(): void
17271728 $ resource = $ loadedFile ->getFile ();
17281729 $ result = fseek ($ resource , 0 );
17291730 $ this ->assertSame (0 , $ result );
1730- $ this ->assertIsResource ( $ resource );
1731+ $ this ->assertSame ( ' resource ' , gettype ( $ resource) );
17311732 $ firstLine = fgets ($ resource );
17321733 $ this ->assertSame ("<?php \n" , $ firstLine );
17331734 }
@@ -1741,7 +1742,7 @@ public function testReadBlob(): void
17411742 $ loadedFile = $ fileDao ->getById (1 );
17421743
17431744 $ resource = $ loadedFile ->getFile ();
1744- $ this ->assertIsResource ( $ resource );
1745+ $ this ->assertSame ( ' resource ' , gettype ( $ resource) );
17451746 $ firstLine = fgets ($ resource );
17461747 $ this ->assertSame ("<?php \n" , $ firstLine );
17471748
You can’t perform that action at this time.
0 commit comments