Skip to content

Commit 3850c56

Browse files
committed
Bringing back compat with PHPUnit 7
1 parent 42e1d42 commit 3850c56

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tests/Commands/GenerateCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
/**

tests/TDBMDaoGeneratorTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
use TheCodingMachine\TDBM\Utils\PathFinder\PathFinder;
9090
use TheCodingMachine\TDBM\Utils\TDBMDaoGenerator;
9191
use Symfony\Component\Process\Process;
92+
use function gettype;
9293

9394
class 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

0 commit comments

Comments
 (0)