Skip to content

Commit 708c447

Browse files
committed
Remove hasExceptions from BatchException
1 parent 9cb62d9 commit 708c447

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

spec/Exception/BatchExceptionSpec.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,10 @@ function it_has_an_exception_for_a_request(RequestInterface $request, Exception
4545

4646
function it_has_exceptions(RequestInterface $request, Exception $exception)
4747
{
48-
$this->hasExceptions()->shouldReturn(false);
4948
$this->getExceptions()->shouldReturn([]);
5049

5150
$this->addException($request, $exception);
5251

53-
$this->hasExceptions()->shouldReturn(true);
5452
$this->getExceptions()->shouldReturn([$exception]);
5553
}
5654

src/Exception/BatchException.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -118,16 +118,6 @@ public function getExceptionFor(RequestInterface $request)
118118
}
119119
}
120120

121-
/**
122-
* Checks if there are any exceptions at all
123-
*
124-
* @return boolean
125-
*/
126-
public function hasExceptions()
127-
{
128-
return $this->exceptions->count() > 0;
129-
}
130-
131121
/**
132122
* Checks if there is an exception for a request
133123
*

0 commit comments

Comments
 (0)