@@ -50,10 +50,10 @@ public function validConfigurationFilesDataProvider()
50
50
{
51
51
return [
52
52
'From root directory ' => [
53
- ['githooks.yml ' => $ this ->setConfigurationFileBuilder ()->buildYalm ()]
53
+ ['githooks.yml ' => $ this ->setConfigurationFileBuilder ()->buildYaml ()]
54
54
],
55
55
'From qa/ directory ' => [
56
- 'qa ' => ['githooks.yml ' => $ this ->setConfigurationFileBuilder ()->buildYalm ()]
56
+ 'qa ' => ['githooks.yml ' => $ this ->setConfigurationFileBuilder ()->buildYaml ()]
57
57
]
58
58
];
59
59
}
@@ -74,10 +74,10 @@ function it_can_read_file_configuration_githooksDotYml($fileSystemStructure)
74
74
*/
75
75
function it_searchs_configuration_file_first_in_the_root_directory ()
76
76
{
77
- $ rootFileYalm = $ this ->configurationFileBuilder ->setTools (['phpcs ' ])->buildYalm ();
77
+ $ rootFileYalm = $ this ->configurationFileBuilder ->setTools (['phpcs ' ])->buildYaml ();
78
78
$ rootFileArray = $ this ->configurationFileBuilder ->buildArray ();
79
79
80
- $ qaFileYalm = $ this ->configurationFileBuilder ->setTools (['parrallel-lint ' ])->buildYalm ();
80
+ $ qaFileYalm = $ this ->configurationFileBuilder ->setTools (['parrallel-lint ' ])->buildYaml ();
81
81
$ qaFileArray = $ this ->configurationFileBuilder ->buildArray ();
82
82
83
83
$ fileSystemStructure = [
@@ -136,7 +136,7 @@ function it_throws_exception_when_file_type_is_not_supported()
136
136
function it_prioritizes_php_files_over_yml ()
137
137
{
138
138
$ phpConfig = "<?php return ['tools' => ['phpunit']]; " ;
139
- $ ymlConfig = $ this ->configurationFileBuilder ->setTools (['phpcs ' ])->buildYalm ();
139
+ $ ymlConfig = $ this ->configurationFileBuilder ->setTools (['phpcs ' ])->buildYaml ();
140
140
141
141
$ fileSystemStructure = [
142
142
'githooks.php ' => $ phpConfig ,
@@ -161,8 +161,8 @@ public function configurationFilesInRootAndQaDataProvider()
161
161
'php '
162
162
],
163
163
'YAML files ' => [
164
- $ this ->setConfigurationFileBuilder ()->setTools (['phpunit ' ])->buildYalm (),
165
- $ this ->setConfigurationFileBuilder ()->setTools (['phpcs ' ])->buildYalm (),
164
+ $ this ->setConfigurationFileBuilder ()->setTools (['phpunit ' ])->buildYaml (),
165
+ $ this ->setConfigurationFileBuilder ()->setTools (['phpcs ' ])->buildYaml (),
166
166
$ this ->setConfigurationFileBuilder ()->setTools (['phpunit ' ])->buildArray (),
167
167
'yml '
168
168
]
@@ -191,7 +191,7 @@ function it_prioritizes_files_in_root_directory_over_files_in_qa_directory($root
191
191
/** @test */
192
192
function it_reads_configuration_file_from_relative_path ()
193
193
{
194
- $ yamlConfig = $ this ->configurationFileBuilder ->setTools (['phpcs ' ])->buildYalm ();
194
+ $ yamlConfig = $ this ->configurationFileBuilder ->setTools (['phpcs ' ])->buildYaml ();
195
195
$ relativePath = 'custom/path/githooks.yml ' ;
196
196
197
197
$ fileSystemStructure = [
@@ -211,7 +211,7 @@ function it_reads_configuration_file_from_relative_path()
211
211
/** @test */
212
212
function it_prioritizes_configFile_parameter_over_default_search ()
213
213
{
214
- $ yamlConfig = $ this ->configurationFileBuilder ->setTools (['phpcs ' ])->buildYalm ();
214
+ $ yamlConfig = $ this ->configurationFileBuilder ->setTools (['phpcs ' ])->buildYaml ();
215
215
$ phpConfig = "<?php return ['tools' => ['phpunit']]; " ;
216
216
$ relativePath = 'custom/path/githooks.yml ' ;
217
217
$ fileSystemStructure = [
0 commit comments