You are here

private function LintCommandTest::createFile in Lockr 7.3

Return value

string Path to the new file

6 calls to LintCommandTest::createFile()
LintCommandTest::testConstantAsKey in vendor/symfony/yaml/Tests/Command/LintCommandTest.php
LintCommandTest::testCustomTags in vendor/symfony/yaml/Tests/Command/LintCommandTest.php
LintCommandTest::testCustomTagsError in vendor/symfony/yaml/Tests/Command/LintCommandTest.php
LintCommandTest::testLintCorrectFile in vendor/symfony/yaml/Tests/Command/LintCommandTest.php
LintCommandTest::testLintFileNotReadable in vendor/symfony/yaml/Tests/Command/LintCommandTest.php
@expectedException \RuntimeException

... See full list

File

vendor/symfony/yaml/Tests/Command/LintCommandTest.php, line 96

Class

LintCommandTest
Tests the YamlLintCommand.

Namespace

Symfony\Component\Yaml\Tests\Command

Code

private function createFile($content) {
  $filename = tempnam(sys_get_temp_dir() . '/framework-yml-lint-test', 'sf-');
  file_put_contents($filename, $content);
  $this->files[] = $filename;
  return $filename;
}