Skip to content

Commit

Permalink
bump code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
cnizzardini committed May 15, 2021
1 parent 33e9af6 commit 2609bf3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/TestCase/Command/PreloaderCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Cake\TestSuite\ConsoleIntegrationTestTrait;
use Cake\TestSuite\TestCase;
use RuntimeException;

class PreloaderCommandTest extends TestCase
{
Expand Down Expand Up @@ -103,4 +104,10 @@ public function test_with_multiple_packages()
$this->assertStringContainsString('vendorone/packageone/src/VendorOnePackageOneTestClassZz.php', $preload);
$this->assertStringContainsString('vendortwo/packagetwo/src/VendorTwoPackageTwoTestClassZz.php', $preload);
}

public function test_invalid_file()
{
$this->expectException(RuntimeException::class);
$this->exec('preloader --name="/etc/passwd"');
}
}

0 comments on commit 2609bf3

Please sign in to comment.