Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
craue committed May 11, 2012
1 parent 868d649 commit ff122d3
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,9 @@ public function testTooLargeBytes()
$this->context->expects($this->once())
->method('addViolation')
->with('myMessage', array(
'{{ limit }}' => '10 bytes',
'{{ size }}' => '11 bytes',
'{{ limit }}' => '10',
'{{ size }}' => '11',
'{{ suffix }}' => 'bytes',
'{{ file }}' => $this->path,
));

Expand All @@ -119,8 +120,9 @@ public function testTooLargeKiloBytes()
$this->context->expects($this->once())
->method('addViolation')
->with('myMessage', array(
'{{ limit }}' => '1 kB',
'{{ size }}' => '1.4 kB',
'{{ limit }}' => '1',
'{{ size }}' => '1.4',
'{{ suffix }}' => 'kB',
'{{ file }}' => $this->path,
));

Expand All @@ -139,8 +141,9 @@ public function testTooLargeMegaBytes()
$this->context->expects($this->once())
->method('addViolation')
->with('myMessage', array(
'{{ limit }}' => '1 MB',
'{{ size }}' => '1.4 MB',
'{{ limit }}' => '1',
'{{ size }}' => '1.4',
'{{ suffix }}' => 'MB',
'{{ file }}' => $this->path,
));

Expand Down

0 comments on commit ff122d3

Please sign in to comment.