Skip to content

Commit 9e38524

Browse files
committed
Replace old vendor naming
1 parent 39a1323 commit 9e38524

9 files changed

+12
-12
lines changed

adr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
directory: docs/arch
22
template:
3-
decision-record: vendor/globtec/phpadr/template/skeleton.md
3+
decision-record: vendor/bellangelo/phpadr/template/skeleton.md

docs/arch/0004-composer-as-dependency-management.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ It will be used the [Composer](https://getcomposer.org/) as tool for dependency
1717
This project can also be installed with Composer using the following command:
1818

1919
```
20-
composer require globtec/phpadr --dev dev-master
20+
composer require bellangelo/phpadr --dev dev-master
2121
```
2222

2323
## Consequences

src/Command/MakeDecisionCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ protected function configure()
5555
null,
5656
InputOption::VALUE_REQUIRED,
5757
'Config file',
58-
'vendor/globtec/phpadr/adr.yml'
58+
realpath(__DIR__ . '/../../adr.yml')
5959
);
6060
}
6161

src/Command/WorkspaceCountCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ protected function configure()
3131
null,
3232
InputOption::VALUE_REQUIRED,
3333
'Config file',
34-
'vendor/globtec/phpadr/adr.yml'
34+
realpath(__DIR__ . '/../../adr.yml')
3535
);
3636
}
3737

src/Command/WorkspaceListCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ protected function configure()
3131
null,
3232
InputOption::VALUE_REQUIRED,
3333
'Config file',
34-
'vendor/globtec/phpadr/adr.yml'
34+
realpath(__DIR__ . '/../../adr.yml')
3535
);
3636
}
3737

tests/Command/MakeDecisionCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,15 @@ public function testOptionConfig()
8181
$this->assertNull($option->getShortcut());
8282
$this->assertTrue($option->isValueRequired());
8383
$this->assertEquals('Config file', $option->getDescription());
84-
$this->assertEquals('vendor/globtec/phpadr/adr.yml', $option->getDefault());
84+
$this->assertEquals(realpath(__DIR__ . '/../../adr.yml'), $option->getDefault());
8585
}
8686

8787
public function testExecute()
8888
{
8989
$vfs = vfsStream::setup();
9090
$configContent = file_get_contents('adr.yml');
9191
$configContent = str_replace('docs/arch', $vfs->url(), $configContent);
92-
$configContent = str_replace('vendor/globtec/phpadr/', '', $configContent);
92+
$configContent = str_replace('vendor/bellangelo/phpadr/', '', $configContent);
9393
$configFile = vfsStream::newFile('adr.yml')->at($vfs)->setContent($configContent)->url();
9494

9595
(new Application())->add($this->command);

tests/Command/WorkspaceCountCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ public function testOptionConfig()
5454
$this->assertNull($option->getShortcut());
5555
$this->assertTrue($option->isValueRequired());
5656
$this->assertEquals('Config file', $option->getDescription());
57-
$this->assertEquals('vendor/globtec/phpadr/adr.yml', $option->getDefault());
57+
$this->assertEquals(realpath(__DIR__ . '/../../adr.yml'), $option->getDefault());
5858
}
5959

6060
public function testExecute()
6161
{
6262
$vfs = vfsStream::setup();
6363
$configContent = file_get_contents('adr.yml');
6464
$configContent = str_replace('docs/arch', $vfs->url(), $configContent);
65-
$configContent = str_replace('vendor/globtec/phpadr/', '', $configContent);
65+
$configContent = str_replace('vendor/bellangelo/phpadr/', '', $configContent);
6666
$configFile = vfsStream::newFile('adr.yml')->at($vfs)->setContent($configContent)->url();
6767

6868
$input = [

tests/Command/WorkspaceListCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ public function testOptionConfig()
5454
$this->assertNull($option->getShortcut());
5555
$this->assertTrue($option->isValueRequired());
5656
$this->assertEquals('Config file', $option->getDescription());
57-
$this->assertEquals('vendor/globtec/phpadr/adr.yml', $option->getDefault());
57+
$this->assertEquals(realpath(__DIR__ . '/../../adr.yml'), $option->getDefault());
5858
}
5959

6060
public function testExecute()
6161
{
6262
$vfs = vfsStream::setup();
6363
$configContent = file_get_contents('adr.yml');
6464
$configContent = str_replace('docs/arch', $vfs->url(), $configContent);
65-
$configContent = str_replace('vendor/globtec/phpadr/', '', $configContent);
65+
$configContent = str_replace('vendor/bellangelo/phpadr/', '', $configContent);
6666
$configFile = vfsStream::newFile('adr.yml')->at($vfs)->setContent($configContent)->url();
6767

6868
$input = [

tests/Filesystem/ConfigTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function testInstanceSuccessfully()
1313
$config = new Config(__DIR__ . '/../../adr.yml');
1414

1515
$this->assertEquals('docs/arch', $config->directory());
16-
$this->assertEquals('vendor/globtec/phpadr/template/skeleton.md', $config->decisionRecordTemplateFile());
16+
$this->assertEquals('vendor/bellangelo/phpadr/template/skeleton.md', $config->decisionRecordTemplateFile());
1717
}
1818

1919
public function testInstanceNotExistingFailure()

0 commit comments

Comments
 (0)