19declare(strict_types=1);
24use PHPUnit\Framework\TestCase;
26use PHPUnit\Framework\MockObject\Stub;
30 public function testConstruct():
void
33 $language = $this->createStub(Language::class);
37 public function testFailingAccept():
void
40 $language = $this->createStub(Language::class);
43 $this->assertFalse($transformation->accepts(
'I hope this string is no valid path...'));
46 public function testSuccessfulAccept():
void
48 if (!is_file(
'/bin/sh')) {
49 $this->markTestSkipped(
'Shell /bin/sh is not available.');
53 $language = $this->createStub(Language::class);
56 $this->assertTrue($transformation->accepts(
'/bin/sh'));