Skip to content

Commit

Permalink
Update test CS.
Browse files Browse the repository at this point in the history
Signed-off-by: crynobone <crynobone@gmail.com>
  • Loading branch information
crynobone committed Dec 21, 2015
1 parent be7c95d commit 2cf31cf
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 35 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ before_script:
- if [[ $setup = 'basic' ]]; then travis_retry composer install --prefer-source --no-interaction; fi
- if [[ $setup = 'stable' ]]; then travis_retry composer update --prefer-source --no-interaction --prefer-stable; fi
- if [[ $setup = 'lowest' ]]; then travis_retry composer update --prefer-source --no-interaction --prefer-lowest --prefer-stable; fi
- if [[ $setup = 'coveralls' ]]; then travis_retry composer require "psr/log=1.0.0" "satooshi/php-coveralls=~0.6" "symfony/yaml=~2.0" --prefer-source --no-interaction --dev; fi
- if [[ $setup = 'coveralls' ]]; then travis_retry composer require "psr/log=1.0.0" "satooshi/php-coveralls=~0.7" --prefer-source --no-interaction --dev; fi

script:
- if [[ $coverage = 'yes' ]]; then phpunit -c phpunit.xml --coverage-clover build/logs/clover.xml; fi
Expand Down
1 change: 1 addition & 0 deletions docs/changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Extension Change Log

---

## Version 3.1 {#v3-1}

### v3.1.11 {#v3-1-11}
Expand Down
2 changes: 1 addition & 1 deletion tests/Config/RepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function testMapMethod()
$stub = new Repository($config, $manager);

$stub->map('laravel/framework', [
'foo' => 'laravel/framework::foo',
'foo' => 'laravel/framework::foo',
'foobar' => 'laravel/framework::foobar',
]);
}
Expand Down
8 changes: 4 additions & 4 deletions tests/DispatcherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ public function testStartMethod()
$finder = m::mock('\Orchestra\Extension\Finder');

$options1 = [
'config' => ['handles' => 'laravel'],
'path' => '/foo/app/laravel/framework/',
'config' => ['handles' => 'laravel'],
'path' => '/foo/app/laravel/framework/',
'source-path' => '/foo/app',
'autoload' => [
'autoload' => [
'source-path::hello.php',
'start.php',
],
Expand All @@ -58,7 +58,7 @@ public function testStartMethod()

$options2 = [
'config' => [],
'path' => '/foo/app/',
'path' => '/foo/app/',
];

$config->shouldReceive('set')->once()
Expand Down
10 changes: 5 additions & 5 deletions tests/FactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ protected function dataProvider()
{
return [
[
'path' => '/foo/path/laravel/framework/',
'config' => ['foo' => 'bar', 'handles' => 'laravel'],
'path' => '/foo/path/laravel/framework/',
'config' => ['foo' => 'bar', 'handles' => 'laravel'],
'provide' => ['Laravel\FrameworkServiceProvider'],
],
[
'path' => '/foo/app/',
'config' => ['foo' => 'bar'],
'path' => '/foo/app/',
'config' => ['foo' => 'bar'],
'provide' => [],
],
];
Expand Down Expand Up @@ -239,7 +239,7 @@ public function testDetectMethod()

$extensions = new Collection([
'foo' => [
'name' => 'Foo',
'name' => 'Foo',
'description' => 'Foobar',
],
]);
Expand Down
36 changes: 18 additions & 18 deletions tests/FinderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,30 +69,30 @@ public function testDetectMethod()

$expected = new Collection([
'laravel/framework' => [
'path' => 'vendor::laravel/framework',
'path' => 'vendor::laravel/framework',
'source-path' => 'vendor::laravel/framework',
'name' => 'laravel/framework',
'name' => 'laravel/framework',
'description' => 'Laravel Framework',
'author' => null,
'url' => null,
'version' => 'v5.1.10',
'config' => [],
'autoload' => [],
'provides' => [],
'plugin' => null,
'author' => null,
'url' => null,
'version' => 'v5.1.10',
'config' => [],
'autoload' => [],
'provides' => [],
'plugin' => null,
],
'app' => [
'path' => 'app::',
'path' => 'app::',
'source-path' => 'app::',
'name' => 'Application',
'name' => 'Application',
'description' => null,
'author' => null,
'url' => null,
'version' => '*',
'config' => [],
'autoload' => [],
'provides' => [],
'plugin' => null,
'author' => null,
'url' => null,
'version' => '*',
'config' => [],
'autoload' => [],
'provides' => [],
'plugin' => null,
],
]);

Expand Down
12 changes: 6 additions & 6 deletions tests/ProviderRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public function testServicesMethodWhenEager()
$files = m::mock('\Illuminate\Filesystem\Filesystem');

$schema = [
'eager' => true,
'when' => [],
'eager' => true,
'when' => [],
'deferred' => [],
];

Expand Down Expand Up @@ -73,8 +73,8 @@ public function testServicesMethodWhenDeferred()
$files = m::mock('\Illuminate\Filesystem\Filesystem');

$schema = [
'eager' => false,
'when' => [],
'eager' => false,
'when' => [],
'deferred' => [
'foo' => $service,
],
Expand Down Expand Up @@ -122,8 +122,8 @@ public function testServicesMethodWhenManifestExists()
$manifestPath = '/var/www/laravel/bootstrap/cache';

$schema = [
'eager' => true,
'when' => [],
'eager' => true,
'when' => [],
'deferred' => [],
];

Expand Down

0 comments on commit 2cf31cf

Please sign in to comment.