Skip to content

Commit 0efaf13

Browse files
committed
fabbot
1 parent 1b6f901 commit 0efaf13

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/Flex.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ public function getComposerJsonHash(): string
585585
public function getLock(): Lock
586586
{
587587
if (null === $this->lock) {
588-
throw new \Exception('Cannot access lock before calling activate()');
588+
throw new \Exception('Cannot access lock before calling activate().');
589589
}
590590

591591
return $this->lock;

src/Update/RecipePatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ private function execute(string $command, string $cwd): string
155155
$statusCode = $this->processExecutor->execute($command, $output, $cwd);
156156

157157
if (0 !== $statusCode) {
158-
throw new \LogicException(sprintf('Command "%s" failed: %s. Output: %s', $command, $this->processExecutor->getErrorOutput(), $output));
158+
throw new \LogicException(sprintf('Command "%s" failed: "%s". Output: "%s".', $command, $this->processExecutor->getErrorOutput(), $output));
159159
}
160160

161161
return $output;

tests/Configurator/BundlesConfiguratorTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ public function testConfigure()
2727
$config = FLEX_TEST_DIR.'/config/bundles.php';
2828

2929
$configurator = new BundlesConfigurator(
30-
$this->getMockBuilder('Composer\Composer')->getMock(),
31-
$this->getMockBuilder('Composer\IO\IOInterface')->getMock(),
30+
$this->getMockBuilder(Composer::class)->getMock(),
31+
$this->getMockBuilder(IOInterface::class)->getMock(),
3232
new Options(['config-dir' => 'config', 'root-dir' => FLEX_TEST_DIR])
3333
);
3434

@@ -64,8 +64,8 @@ public function testConfigureWhenBundlesAlreadyExists()
6464
);
6565

6666
$configurator = new BundlesConfigurator(
67-
$this->getMockBuilder('Composer\Composer')->getMock(),
68-
$this->getMockBuilder('Composer\IO\IOInterface')->getMock(),
67+
$this->getMockBuilder(Composer::class)->getMock(),
68+
$this->getMockBuilder(IOInterface::class)->getMock(),
6969
new Options(['config-dir' => 'config', 'root-dir' => FLEX_TEST_DIR])
7070
);
7171

@@ -103,8 +103,8 @@ public function testUnconfigure()
103103
);
104104

105105
$configurator = new BundlesConfigurator(
106-
$this->getMockBuilder('Composer\Composer')->getMock(),
107-
$this->getMockBuilder('Composer\IO\IOInterface')->getMock(),
106+
$this->getMockBuilder(Composer::class)->getMock(),
107+
$this->getMockBuilder(IOInterface::class)->getMock(),
108108
new Options(['config-dir' => 'config', 'root-dir' => FLEX_TEST_DIR])
109109
);
110110

0 commit comments

Comments
 (0)