Skip to content

Commit

Permalink
Applied fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
webmozart authored and StyleCIBot committed Feb 2, 2016
1 parent e4fe1ba commit b4b766a
Show file tree
Hide file tree
Showing 14 changed files with 85 additions and 85 deletions.
28 changes: 14 additions & 14 deletions tests/Handler/BindCommandHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function testListAllBindings()

$args = self::$listCommand->parseArgs(new StringArgs(''));

$expected = <<<EOF
$expected = <<<'EOF'
The following bindings are currently enabled:
Package: vendor/root
Expand Down Expand Up @@ -241,7 +241,7 @@ public function testListRootBindings()

$args = self::$listCommand->parseArgs(new StringArgs('--root'));

$expected = <<<EOF
$expected = <<<'EOF'
The following bindings are currently enabled:
UUID Glob Type
Expand Down Expand Up @@ -287,7 +287,7 @@ public function testListPackageBindings()

$args = self::$listCommand->parseArgs(new StringArgs('--package=vendor/package1'));

$expected = <<<EOF
$expected = <<<'EOF'
The following bindings are currently enabled:
UUID Glob Type
Expand Down Expand Up @@ -331,7 +331,7 @@ public function testListRootAndPackageBindings()

$args = self::$listCommand->parseArgs(new StringArgs('--root --package=vendor/package1'));

$expected = <<<EOF
$expected = <<<'EOF'
The following bindings are currently enabled:
Package: vendor/root
Expand Down Expand Up @@ -412,7 +412,7 @@ public function testListMultiplePackageBindings()

$args = self::$listCommand->parseArgs(new StringArgs('--package=vendor/package1 --package=vendor/package2'));

$expected = <<<EOF
$expected = <<<'EOF'
The following bindings are currently enabled:
Package: vendor/package1
Expand Down Expand Up @@ -491,7 +491,7 @@ public function testListEnabledBindings()

$args = self::$listCommand->parseArgs(new StringArgs('--enabled'));

$expected = <<<EOF
$expected = <<<'EOF'
Package: vendor/root
UUID Glob Type
Expand Down Expand Up @@ -523,7 +523,7 @@ public function testListDisabledBindings()

$args = self::$listCommand->parseArgs(new StringArgs('--disabled'));

$expected = <<<EOF
$expected = <<<'EOF'
Package: vendor/root
UUID Glob Type
Expand Down Expand Up @@ -553,7 +553,7 @@ public function testListBindingsWithTypeNotFound()

$args = self::$listCommand->parseArgs(new StringArgs('--type-not-found'));

$expected = <<<EOF
$expected = <<<'EOF'
Package: vendor/root
UUID Glob Type
Expand Down Expand Up @@ -583,7 +583,7 @@ public function testListBindingsWithTypeNotEnabled()

$args = self::$listCommand->parseArgs(new StringArgs('--type-not-enabled'));

$expected = <<<EOF
$expected = <<<'EOF'
Package: vendor/root
UUID Glob Type
Expand Down Expand Up @@ -613,7 +613,7 @@ public function testListInvalidBindings()

$args = self::$listCommand->parseArgs(new StringArgs('--invalid'));

$expected = <<<EOF
$expected = <<<'EOF'
Package: vendor/root
UUID Glob Type
Expand Down Expand Up @@ -643,7 +643,7 @@ public function testListEnabledAndDisabledBindings()

$args = self::$listCommand->parseArgs(new StringArgs('--enabled --disabled'));

$expected = <<<EOF
$expected = <<<'EOF'
The following bindings are currently enabled:
Package: vendor/root
Expand Down Expand Up @@ -695,7 +695,7 @@ public function testListEnabledBindingsFromRoot()

$args = self::$listCommand->parseArgs(new StringArgs('--enabled --root'));

$expected = <<<EOF
$expected = <<<'EOF'
UUID Glob Type
bb5a07 /root/enabled Foo
cc9f22 /overridden Foo
Expand All @@ -714,7 +714,7 @@ public function testListEnabledBindingsFromPackage()

$args = self::$listCommand->parseArgs(new StringArgs('--enabled --package=vendor/package2'));

$expected = <<<EOF
$expected = <<<'EOF'
UUID Glob Type
ddb655 /package2/enabled Foo

Expand Down Expand Up @@ -763,7 +763,7 @@ public function testListNoBindings()

$statusCode = $this->handler->handleList($args, $this->io);

$expected = <<<EOF
$expected = <<<'EOF'
No bindings found. Use "puli bind <artifact> <type>" to bind an artifact to a type.

EOF;
Expand Down
6 changes: 3 additions & 3 deletions tests/Handler/CatCommandHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function testListRelativePath()

$statusCode = $this->handler->handle($args, $this->io);

$expected = <<<EOF
$expected = <<<'EOF'
testA
testB
testC
Expand All @@ -91,7 +91,7 @@ public function testListAbsolutePath()

$statusCode = $this->handler->handle($args, $this->io);

$expected = <<<EOF
$expected = <<<'EOF'
testA
testB
testC
Expand All @@ -115,7 +115,7 @@ public function testListAbsoluteFilePath()

$statusCode = $this->handler->handle($args, $this->io);

$expected = <<<EOF
$expected = <<<'EOF'
testA

EOF;
Expand Down
4 changes: 2 additions & 2 deletions tests/Handler/ConfigCommandHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function testListParsed()

$statusCode = $this->handler->handleList($args, $this->io);

$expected = <<<EOF
$expected = <<<'EOF'
Config Key User Value Effective Value
key value value

Expand Down Expand Up @@ -185,7 +185,7 @@ public function testShowParsed()

$statusCode = $this->handler->handleShow($args, $this->io);

$expected = <<<EOF
$expected = <<<'EOF'
value

EOF;
Expand Down
18 changes: 9 additions & 9 deletions tests/Handler/FindCommandHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function testFindByRelativePath()

$statusCode = $this->handler->handle($args, $this->io);

$expected = <<<EOF
$expected = <<<'EOF'
FileResource /path/file
GenericResource /path/resource1
GenericResource /path/resource2
Expand Down Expand Up @@ -114,7 +114,7 @@ public function testFindByAbsolutePath()

$statusCode = $this->handler->handle($args, $this->io);

$expected = <<<EOF
$expected = <<<'EOF'
FileResource /path/file
GenericResource /path/resource1
GenericResource /path/resource2
Expand Down Expand Up @@ -143,7 +143,7 @@ public function testFindByPathAndLanguage()

$statusCode = $this->handler->handle($args, $this->io);

$expected = <<<EOF
$expected = <<<'EOF'
FileResource /path/file
GenericResource /path/resource1
GenericResource /path/resource2
Expand Down Expand Up @@ -172,7 +172,7 @@ public function testFindByName()

$statusCode = $this->handler->handle($args, $this->io);

$expected = <<<EOF
$expected = <<<'EOF'
FileResource /path/file
GenericResource /path/resource1
GenericResource /path/resource2
Expand Down Expand Up @@ -214,7 +214,7 @@ public function testFindByClass()

$statusCode = $this->handler->handle($args, $this->io);

$expected = <<<EOF
$expected = <<<'EOF'
GenericResource /path/resource1
GenericResource /path/resource2

Expand Down Expand Up @@ -255,7 +255,7 @@ public function testFindByBindingType()
$statusCode = $this->handler->handle($args, $this->io);

// Result is sorted by path
$expected = <<<EOF
$expected = <<<'EOF'
FileResource /path1/file
GenericResource /path1/resource1
GenericResource /path2/resource2
Expand Down Expand Up @@ -284,7 +284,7 @@ public function testFindByPathAndClass()

$statusCode = $this->handler->handle($args, $this->io);

$expected = <<<EOF
$expected = <<<'EOF'
GenericResource /path/resource1
GenericResource /path/resource2

Expand Down Expand Up @@ -325,7 +325,7 @@ public function testFindByBindingTypeAndClass()
$statusCode = $this->handler->handle($args, $this->io);

// Result is sorted by path
$expected = <<<EOF
$expected = <<<'EOF'
GenericResource /path1/resource1
GenericResource /path2/resource2

Expand Down Expand Up @@ -379,7 +379,7 @@ public function testFindByPathAndBindingType()

$statusCode = $this->handler->handle($args, $this->io);

$expected = <<<EOF
$expected = <<<'EOF'
FileResource /path/file
GenericResource /path/resource1
GenericResource /path/resource2
Expand Down
8 changes: 4 additions & 4 deletions tests/Handler/LsCommandHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function testListRelativePath()

$statusCode = $this->handler->handle($args, $this->io);

$expected = <<<EOF
$expected = <<<'EOF'
file resource1 resource2

EOF;
Expand All @@ -90,7 +90,7 @@ public function testListAbsolutePath()

$statusCode = $this->handler->handle($args, $this->io);

$expected = <<<EOF
$expected = <<<'EOF'
file resource1 resource2

EOF;
Expand All @@ -112,7 +112,7 @@ public function testListNoPath()

$statusCode = $this->handler->handle($args, $this->io);

$expected = <<<EOF
$expected = <<<'EOF'
file resource1 resource2

EOF;
Expand Down Expand Up @@ -153,7 +153,7 @@ public function testListLong()

$statusCode = $this->handler->handle($args, $this->io);

$expected = <<<EOF
$expected = <<<'EOF'
TestDirectory 12 Jan 1 1970 dir1
TestFile 34 Jan 1 1970 file1
TestFile 56 Jan 1 1970 file2
Expand Down
24 changes: 12 additions & 12 deletions tests/Handler/MapCommandHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function testListAllMappings()

$statusCode = $this->handler->handleList($args, $this->io);

$expected = <<<EOF
$expected = <<<'EOF'
The following path mappings are currently enabled:
Package: vendor/root
Expand Down Expand Up @@ -171,7 +171,7 @@ public function testListRootPackageMappings()

$statusCode = $this->handler->handleList($args, $this->io);

$expected = <<<EOF
$expected = <<<'EOF'
The following path mappings are currently enabled:
Puli Path Real Path(s)
Expand Down Expand Up @@ -210,7 +210,7 @@ public function testListPackageMappings()

$statusCode = $this->handler->handleList($args, $this->io);

$expected = <<<EOF
$expected = <<<'EOF'
The following path mappings are currently enabled:
Puli Path Real Path(s)
Expand Down Expand Up @@ -257,7 +257,7 @@ public function testListRootAndPackageMappings()

$statusCode = $this->handler->handleList($args, $this->io);

$expected = <<<EOF
$expected = <<<'EOF'
The following path mappings are currently enabled:
Package: vendor/root
Expand Down Expand Up @@ -318,7 +318,7 @@ public function testListMultiplePackageMappings()

$statusCode = $this->handler->handleList($args, $this->io);

$expected = <<<EOF
$expected = <<<'EOF'
The following path mappings are currently enabled:
Package: vendor/package1
Expand Down Expand Up @@ -379,7 +379,7 @@ public function testListEnabledMappings()

$statusCode = $this->handler->handleList($args, $this->io);

$expected = <<<EOF
$expected = <<<'EOF'
Package: vendor/root
Puli Path Real Path(s)
Expand Down Expand Up @@ -411,7 +411,7 @@ public function testListNotFoundMappings()

$statusCode = $this->handler->handleList($args, $this->io);

$expected = <<<EOF
$expected = <<<'EOF'
Package: vendor/root
Puli Path Real Path(s)
Expand Down Expand Up @@ -443,7 +443,7 @@ public function testListConflictingMappings()

$statusCode = $this->handler->handleList($args, $this->io);

$expected = <<<EOF
$expected = <<<'EOF'
Conflicting path: /conflict1
Mapped by the following mappings:
Expand Down Expand Up @@ -477,7 +477,7 @@ public function testListEnabledAndNotFoundMappings()

$statusCode = $this->handler->handleList($args, $this->io);

$expected = <<<EOF
$expected = <<<'EOF'
The following path mappings are currently enabled:
Package: vendor/root
Expand Down Expand Up @@ -528,7 +528,7 @@ public function testListEnabledMappingsFromRoot()

$statusCode = $this->handler->handleList($args, $this->io);

$expected = <<<EOF
$expected = <<<'EOF'
Puli Path Real Path(s)
/root/enabled res, assets

Expand All @@ -547,7 +547,7 @@ public function testListEnabledMappingsFromPackage()

$statusCode = $this->handler->handleList($args, $this->io);

$expected = <<<EOF
$expected = <<<'EOF'
Puli Path Real Path(s)
/package1/enabled res, @vendor/package2:res

Expand All @@ -568,7 +568,7 @@ public function testListNoMappings()

$statusCode = $this->handler->handleList($args, $this->io);

$expected = <<<EOF
$expected = <<<'EOF'
No path mappings. Use "puli map <path> <file>" to map a Puli path to a file or directory.

EOF;
Expand Down
Loading

0 comments on commit b4b766a

Please sign in to comment.