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
26
26
27
27
$ result = $ this ->callCommand (new GenerateCommand ($ this ->getConfiguration ()), $ input );
28
28
29
- $ this ->assertStringContainsString ('Finished regenerating DAOs and beans ' , $ result );
29
+ $ this ->assertContains ('Finished regenerating DAOs and beans ' , $ result );
30
30
}
31
31
32
32
/**
Original file line number Diff line number Diff line change 89
89
use TheCodingMachine \TDBM \Utils \PathFinder \PathFinder ;
90
90
use TheCodingMachine \TDBM \Utils \TDBMDaoGenerator ;
91
91
use Symfony \Component \Process \Process ;
92
+ use function gettype ;
92
93
93
94
class TDBMDaoGeneratorTest extends TDBMAbstractServiceTest
94
95
{
@@ -1727,7 +1728,7 @@ public function testBlob(): void
1727
1728
$ resource = $ loadedFile ->getFile ();
1728
1729
$ result = fseek ($ resource , 0 );
1729
1730
$ this ->assertSame (0 , $ result );
1730
- $ this ->assertIsResource ( $ resource );
1731
+ $ this ->assertSame ( ' resource ' , gettype ( $ resource) );
1731
1732
$ firstLine = fgets ($ resource );
1732
1733
$ this ->assertSame ("<?php \n" , $ firstLine );
1733
1734
}
@@ -1741,7 +1742,7 @@ public function testReadBlob(): void
1741
1742
$ loadedFile = $ fileDao ->getById (1 );
1742
1743
1743
1744
$ resource = $ loadedFile ->getFile ();
1744
- $ this ->assertIsResource ( $ resource );
1745
+ $ this ->assertSame ( ' resource ' , gettype ( $ resource) );
1745
1746
$ firstLine = fgets ($ resource );
1746
1747
$ this ->assertSame ("<?php \n" , $ firstLine );
1747
1748
You can’t perform that action at this time.
0 commit comments