public function ParserYamlTest::testSupportedFile

8.0.x ParserYamlTest.php public ParserYamlTest::testSupportedFile()
7.x ParserYamlTest.php public ParserYamlTest::testSupportedFile()
master ParserYamlTest.php public ParserYamlTest::testSupportedFile()

@covers ::supportedFile

File

tests/Drush/Tests/Make/Parser/ParserYamlTest.php, line 15

Namespace

Drush\Tests\Make\Parser

Class

ParserYamlTest
@coversDefaultClass \Drush\Make\Parser\ParserYaml

Code

public function testSupportedFile() {
  // @todo allow stdin support for Yaml files as well.
  $this->assertFalse(ParserYaml::supportedFile('-'));
  $this->assertTrue(ParserYaml::supportedFile('/tmp/foo/bar/baz.make.yml'));
  $this->assertFalse(ParserYaml::supportedFile('./baz/foo.make'));
}