-
Notifications
You must be signed in to change notification settings - Fork 132
/
Copy pathSingleRunTestManifest.php
38 lines (34 loc) · 1.02 KB
/
SingleRunTestManifest.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\FunctionalTestingFramework\Util\Manifest;
class SingleRunTestManifest extends DefaultTestManifest
{
const SINGLE_RUN_CONFIG = 'singleRun';
/**
* SingleRunTestManifest constructor.
*
* @param array $suiteConfiguration
* @param string $testPath
*/
public function __construct($suiteConfiguration, $testPath)
{
parent::__construct($suiteConfiguration, $testPath);
$this->runTypeConfig = self::SINGLE_RUN_CONFIG;
}
/**
* Function which generates the actual manifest once the relevant tests have been added to the array.
*
* @return void
*/
public function generate()
{
$fileResource = fopen($this->manifestPath, 'a');
$line = $this->relativeDirPath . DIRECTORY_SEPARATOR;
fwrite($fileResource, $line . PHP_EOL);
$this->generateSuiteEntries($fileResource);
fclose($fileResource);
}
}