Skip to content

Commit 8db6c91

Browse files
authored
Merge pull request #203 from Kharhamel/fix/phpunitDeprec
fix depreciation in phpunit tests
2 parents 2d4e6f6 + 3e2d5c7 commit 8db6c91

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-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->assertContains('Finished regenerating DAOs and beans', $result);
29+
$this->assertStringContainsString('Finished regenerating DAOs and beans', $result);
3030
}
3131

3232
/**

tests/TDBMDaoGeneratorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1725,7 +1725,7 @@ public function testBlob(): void
17251725
$resource = $loadedFile->getFile();
17261726
$result = fseek($resource, 0);
17271727
$this->assertSame(0, $result);
1728-
$this->assertInternalType('resource', $resource);
1728+
$this->assertIsResource($resource);
17291729
$firstLine = fgets($resource);
17301730
$this->assertSame("<?php\n", $firstLine);
17311731
}
@@ -1739,7 +1739,7 @@ public function testReadBlob(): void
17391739
$loadedFile = $fileDao->getById(1);
17401740

17411741
$resource = $loadedFile->getFile();
1742-
$this->assertInternalType('resource', $resource);
1742+
$this->assertIsResource($resource);
17431743
$firstLine = fgets($resource);
17441744
$this->assertSame("<?php\n", $firstLine);
17451745

0 commit comments

Comments
 (0)