Skip to content

Commit 3a05d4d

Browse files
authored
Create ExecutablePrefixFinderTest.php
1 parent 62e5207 commit 3a05d4d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
namespace PhpBrew\Tests;
4+
5+
use PhpBrew\PrefixFinder\ExecutablePrefixFinder;
6+
use PHPUnit\Framework\TestCase;
7+
8+
/**
9+
* @group prefixfinder
10+
*/
11+
class ExecutablePrefixFinderTest extends TestCase
12+
{
13+
public function testFindValid()
14+
{
15+
$epf = new ExecutablePrefixFinder('ls');
16+
$this->assertNotNull($epf->findPrefix());
17+
}
18+
19+
public function testFindInvalid()
20+
{
21+
$epf = new ExecutablePrefixFinder('inexistent-binary');
22+
$this->assertNull($epf->findPrefix());
23+
}
24+
}

0 commit comments

Comments
 (0)