當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Configuration::outputDir方法代碼示例

本文整理匯總了PHP中Codeception\Configuration::outputDir方法的典型用法代碼示例。如果您正苦於以下問題:PHP Configuration::outputDir方法的具體用法?PHP Configuration::outputDir怎麽用?PHP Configuration::outputDir使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Codeception\Configuration的用法示例。


在下文中一共展示了Configuration::outputDir方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: execute

 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $this->getGlobalConfig($input->getOption('config'));
     $output->writeln("<info>Cleaning up " . Configuration::outputDir() . "...</info>");
     FileSystem::doEmptyDir(Configuration::outputDir());
     $output->writeln("Done");
 }
開發者ID:itillawarra,項目名稱:cmfive,代碼行數:7,代碼來源:Clean.php

示例2: __construct

 public function __construct($options)
 {
     $this->options = $options;
     $this->logDir = Configuration::outputDir();
     $this->settings = array_merge($this->settings, Configuration::config()['coverage']);
     self::$coverage = new \PHP_CodeCoverage();
 }
開發者ID:Vrian7ipx,項目名稱:cascadadev,代碼行數:7,代碼來源:Printer.php

示例3: __construct

 public function __construct()
 {
     $this->config  = Configuration::config();
     $this->logDir = Configuration::outputDir(); // prepare log dir
     $this->phpUnitOverriders();
     parent::__construct();
 }
開發者ID:Vrian7ipx,項目名稱:cascadadev,代碼行數:7,代碼來源:Runner.php

示例4: __construct

 public function __construct($options)
 {
     $this->options = $options;
     $this->logDir = Configuration::outputDir();
     $this->settings = array_merge($this->settings, Configuration::config()['coverage']);
     self::$coverage = new \PHP_CodeCoverage();
     // Apply filter
     $filter = new Filter(self::$coverage);
     $filter->whiteList(Configuration::config())->blackList(Configuration::config());
 }
開發者ID:Eli-TW,項目名稱:Codeception,代碼行數:10,代碼來源:Printer.php

示例5: setUp

 protected function setUp()
 {
     if (!extension_loaded('xdebug')) {
         $this->markTestSkipped('xdebug extension required for c3test.');
     }
     $this->c3 = Configuration::dataDir() . 'claypit/c3.php';
     $this->c3_dir = Codeception\Configuration::outputDir() . 'c3tmp/';
     @mkdir($this->c3_dir, 0777, true);
     $_SERVER['HTTP_X_CODECEPTION_CODECOVERAGE'] = 'test';
     $_SERVER['HTTP_X_CODECEPTION_CODECOVERAGE_DEBUG'] = 'debug';
 }
開發者ID:hitechdk,項目名稱:Codeception,代碼行數:11,代碼來源:c3Test.php

示例6: hasInstalledVimConfigurationInTargetDirectory

 /**
  * @test
  *
  * @throws \Codeception\Exception\ConfigurationException
  */
 public function hasInstalledVimConfigurationInTargetDirectory()
 {
     $target = Configuration::outputDir() . 'vimConfigTest';
     $this->cleanupFolder($target);
     Debug::debug('<info>Preparing command...</info>');
     $command = $this->getCommand();
     Debug::debug('<info>Preparing question helper...</info>');
     $this->mockQuestionHelper($command, function ($test, $order, ConfirmationQuestion $question) {
         // Pick the first choice
         if ($order == 0) {
             return true;
         }
         throw new UnhandledQuestionException();
     });
     Debug::debug('<info>Executing...</info>');
     $tester = new \Symfony\Component\Console\Tester\CommandTester($command);
     $tester->execute([VimConfigurationInstallCommand::TARGET_DIR_ARGUMENT => $target]);
     $output = $tester->getDisplay();
     Debug::debug($output);
     $finder = new Finder();
     $count = $finder->directories()->ignoreDotFiles(false)->in($target)->count();
     $this->assertNotEquals(0, $count, 'No files have been copied!');
 }
開發者ID:bszala,項目名稱:scaffold,代碼行數:28,代碼來源:VimConfigurationInstallCommandTest.php

示例7: hasCopiedFilesIntoTargetLocation

 /**
  * @test
  *
  * @covers  ::execute
  * @covers  ::configure
  * @covers  ::findTemplates
  * @covers  ::getTemplatesList
  * @covers  ::formatTemplatesList
  * @covers  ::createTemplate
  */
 public function hasCopiedFilesIntoTargetLocation()
 {
     $target = Configuration::outputDir() . 'tmp';
     // Eventual pre-cleanup
     $this->cleanupFolder($target);
     Debug::debug('<info>Preparing command...</info>');
     $command = $this->getCommand();
     Debug::debug('<info>Preparing question helper...</info>');
     $this->mockQuestionHelper($command, function ($test, $order, Question $question) {
         // Pick the first choice
         if ($order == 0) {
             return true;
         }
         throw new UnhandledQuestionException();
     });
     Debug::debug('<info>Executing...</info>');
     $tester = new \Symfony\Component\Console\Tester\CommandTester($command);
     $tester->execute([TemplateCommand::ARGUMENT_PATH_NAME => $target]);
     $output = $tester->getDisplay();
     Debug::debug($output);
     $finder = new Finder();
     $count = $finder->directories()->in($target)->count();
     $this->assertNotEquals(0, $count, 'No files have been copied!');
 }
開發者ID:bszala,項目名稱:scaffold,代碼行數:34,代碼來源:TemplateCommandTest.php

示例8: testInvalidCheckMethod

 /**
  * @covers            ::check
  * @expectedException InvalidArgumentException
  */
 public function testInvalidCheckMethod()
 {
     $agent = new Agent(['cache_dir' => Configuration::outputDir(), 'lowercase' => true, 'browscap' => ['doAutoUpdate' => false]], 'Invalid');
     $agent->check();
 }
開發者ID:fuelphp,項目名稱:agent,代碼行數:9,代碼來源:AgentTest.php

示例9: afterSuite

 public function afterSuite(SuiteEvent $e)
 {
     if (!$this->isEnabled()) {
         return;
     }
     if (!file_exists(Configuration::outputDir() . 'c3tmp/codecoverage.serialized')) {
         if (file_exists(Configuration::outputDir() . 'c3tmp/error.txt')) {
             throw new \RuntimeException(file_get_contents(Configuration::outputDir() . 'c3tmp/error.txt'));
         }
         return;
     }
     $contents = file_get_contents(Configuration::outputDir() . 'c3tmp/codecoverage.serialized');
     $coverage = @unserialize($contents);
     if ($coverage === false) {
         return;
     }
     $this->mergeToPrint($coverage);
 }
開發者ID:Eli-TW,項目名稱:Codeception,代碼行數:18,代碼來源:LocalServer.php

示例10: afterSuite

 public function afterSuite(SuiteEvent $e)
 {
     if (!$this->isEnabled()) {
         return;
     }
     $coverageFile = Configuration::outputDir() . 'c3tmp/codecoverage.serialized';
     $retries = 5;
     while (!file_exists($coverageFile) && --$retries >= 0) {
         usleep(0.5 * 1000000);
         // 0.5 sec
     }
     if (!file_exists($coverageFile)) {
         if (file_exists(Configuration::outputDir() . 'c3tmp/error.txt')) {
             throw new \RuntimeException(file_get_contents(Configuration::outputDir() . 'c3tmp/error.txt'));
         }
         return;
     }
     $contents = file_get_contents($coverageFile);
     $coverage = @unserialize($contents);
     if ($coverage === false) {
         return;
     }
     $this->mergeToPrint($coverage);
 }
開發者ID:solutionDrive,項目名稱:Codeception,代碼行數:24,代碼來源:LocalServer.php

示例11:

 function __construct($options = [])
 {
     $this->options = $options;
     $this->logDir = Configuration::outputDir();
 }
開發者ID:hitechdk,項目名稱:Codeception,代碼行數:5,代碼來源:SuiteSubscriber.php

示例12: getLogDir

 public function getLogDir()
 {
     return Config::outputDir();
 }
開發者ID:hitechdk,項目名稱:Codeception,代碼行數:4,代碼來源:Extension.php

示例13: _failed

 public function _failed(\Codeception\TestCase $test, $fail)
 {
     $output = \Codeception\Configuration::outputDir() . DIRECTORY_SEPARATOR . basename($test->getFileName()) . '.page.debug.html';
     file_put_contents($output, $this->browser->getResponse()->getContent());
 }
開發者ID:itillawarra,項目名稱:cmfive,代碼行數:5,代碼來源:Symfony1.php

示例14: testBug2046

 public function testBug2046()
 {
     $this->module->webDriver = null;
     $this->module->_saveScreenshot(\Codeception\Configuration::outputDir() . 'testshot.png');
 }
開發者ID:surjit,項目名稱:Codeception,代碼行數:5,代碼來源:WebDriverTest.php

示例15: codecept_log_dir

 /**
  * Returns absolute path to the requested object which is expected to be in
  * the log directory of a testing project.
  *
  * @since 1.0.1
  *
  * @param string $appendPath A relative path to the requested object.
  * @return string The absolute path to the object.
  */
 function codecept_log_dir($appendPath = '')
 {
     return \Codeception\Configuration::outputDir() . $appendPath;
 }
開發者ID:10up,項目名稱:wp-codeception,代碼行數:13,代碼來源:wp-codeception.php


注:本文中的Codeception\Configuration::outputDir方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。