Skip to content

Commit 38b0afb

Browse files
committedAug 6, 2014
Specs cs
1 parent 930cf3d commit 38b0afb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎spec/Umpirsky/PermissionsHandler/ConfigurationSpec.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ function let(CommandEvent $event, Composer $composer, PackageInterface $package)
1515

1616
$event->getComposer()->shouldBeCalled()->willReturn($composer);
1717
$composer->getPackage()->shouldBeCalled()->willReturn($package);
18-
$package->getExtra()->shouldBeCalled()->willReturn([
19-
'writable-dirs' => ['app/cache', 'app/logs']
20-
]);
18+
$package->getExtra()->shouldBeCalled()->willReturn(
19+
array('writable-dirs' => array('app/cache', 'app/logs'))
20+
);
2121
}
2222

2323
function it_is_initializable()
@@ -27,12 +27,12 @@ function it_is_initializable()
2727

2828
function it_gets_writable_dirs()
2929
{
30-
$this->getWritableDirs()->shouldReturn(['app/cache', 'app/logs']);
30+
$this->getWritableDirs()->shouldReturn(array('app/cache', 'app/logs'));
3131
}
3232

3333
function it_throws_exception_if_writable_dirs_are_not_configured($package)
3434
{
35-
$package->getExtra()->shouldBeCalled()->willReturn([]);
35+
$package->getExtra()->shouldBeCalled()->willReturn(array());
3636

3737
$this->shouldThrow('Umpirsky\PermissionsHandler\Exception\InvalidConfigurationException')->duringGetWritableDirs();
3838
}

0 commit comments

Comments
 (0)
Please sign in to comment.