Skip to content

Commit

Permalink
Fix specs for PHP7
Browse files Browse the repository at this point in the history
  • Loading branch information
jmleroux committed Mar 14, 2016
1 parent 60a309e commit c4a5057
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
3 changes: 2 additions & 1 deletion spec/PUGX/Poser/Render/SvgFlatRenderSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@

class SvgFlatRenderSpec extends ObjectBehavior
{
function let(TextSizeCalculatorInterface $calculator)
function let($calculator)
{
$calculator->beADoubleOf('\PUGX\Poser\Calculator\TextSizeCalculatorInterface');
$calculator->calculateWidth(Argument::any())->willReturn(20);
$this->beConstructedWith($calculator);
}
Expand Down
7 changes: 3 additions & 4 deletions spec/PUGX/Poser/Render/SvgFlatSquareRenderSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
use PhpSpec\ObjectBehavior;
use Prophecy\Argument;
use PUGX\Poser\Badge;
use PUGX\Poser\Calculator\TextSizeCalculatorInterface;

class SvgFlatSquareRenderSpec extends ObjectBehavior
{
function let(TextSizeCalculatorInterface $calculator)
function let($calculator)
{
$calculator->beADoubleOf('\PUGX\Poser\Calculator\TextSizeCalculatorInterface');
$calculator->calculateWidth(Argument::any())->willReturn(20);
$realCalculator = $calculator->getWrappedObject();
$this->beConstructedWith($realCalculator);
$this->beConstructedWith($calculator);
}

function it_should_render_a_svg()
Expand Down
4 changes: 2 additions & 2 deletions spec/PUGX/Poser/Render/SvgRenderSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
use PhpSpec\ObjectBehavior;
use Prophecy\Argument;
use PUGX\Poser\Badge;
use PUGX\Poser\Calculator\TextSizeCalculatorInterface;

class SvgRenderSpec extends ObjectBehavior
{
function let(TextSizeCalculatorInterface $calculator)
function let($calculator)
{
$calculator->beADoubleOf('\PUGX\Poser\Calculator\TextSizeCalculatorInterface');
$calculator->calculateWidth(Argument::any())->willReturn(20);
$this->beConstructedWith($calculator);
}
Expand Down

0 comments on commit c4a5057

Please sign in to comment.