@@ -6,7 +6,6 @@ |
||
| 6 | 6 | |
| 7 | 7 | use byrokrat\autogiro\Exception\ParserException; |
| 8 | 8 | use PhpSpec\ObjectBehavior; |
| 9 | -use Prophecy\Argument; |
|
| 10 | 9 | |
| 11 | 10 | class ParserExceptionSpec extends ObjectBehavior |
| 12 | 11 | { |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | use byrokrat\autogiro\Tree\Node; |
| 11 | 11 | use byrokrat\autogiro\Exception\ParserException; |
| 12 | 12 | use PhpSpec\ObjectBehavior; |
| 13 | -use Prophecy\Argument; |
|
| 14 | 13 | |
| 15 | 14 | class ParserSpec extends ObjectBehavior |
| 16 | 15 | { |
@@ -5,9 +5,7 @@ discard block |
||
| 5 | 5 | namespace spec\byrokrat\autogiro\Processor; |
| 6 | 6 | |
| 7 | 7 | use byrokrat\autogiro\Processor\BankgiroProcessor; |
| 8 | -use byrokrat\autogiro\Exception; |
|
| 9 | 8 | use byrokrat\autogiro\Tree\OpeningNode; |
| 10 | -use byrokrat\autogiro\Tree\ClosingNode; |
|
| 11 | 9 | use byrokrat\autogiro\Tree\RequestMandateCreationNode; |
| 12 | 10 | use byrokrat\autogiro\Tree\RequestMandateAcceptanceNode; |
| 13 | 11 | use byrokrat\autogiro\Tree\RequestMandateRejectionNode; |
@@ -16,7 +14,6 @@ discard block |
||
| 16 | 14 | use byrokrat\autogiro\Tree\MandateResponseNode; |
| 17 | 15 | use byrokrat\autogiro\Tree\BankgiroNode; |
| 18 | 16 | use PhpSpec\ObjectBehavior; |
| 19 | -use Prophecy\Argument; |
|
| 20 | 17 | |
| 21 | 18 | class BankgiroProcessorSpec extends ObjectBehavior |
| 22 | 19 | { |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | use byrokrat\autogiro\Tree\OpeningNode; |
| 11 | 11 | use byrokrat\autogiro\Tree\BankgiroNode; |
| 12 | 12 | use PhpSpec\ObjectBehavior; |
| 13 | -use Prophecy\Argument; |
|
| 14 | 13 | |
| 15 | 14 | class FileProcessorSpec extends ObjectBehavior |
| 16 | 15 | { |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | use byrokrat\autogiro\Tree\IdNode; |
| 13 | 13 | use byrokrat\autogiro\Tree\MessageNode; |
| 14 | 14 | use PhpSpec\ObjectBehavior; |
| 15 | -use Prophecy\Argument; |
|
| 16 | 15 | |
| 17 | 16 | class MandateResponseNodeSpec extends ObjectBehavior |
| 18 | 17 | { |
@@ -3022,6 +3022,9 @@ discard block |
||
| 3022 | 3022 | return '"' . substr($this->string, $this->position) . '"'; |
| 3023 | 3023 | } |
| 3024 | 3024 | |
| 3025 | + /** |
|
| 3026 | + * @param string $expecting |
|
| 3027 | + */ |
|
| 3025 | 3028 | protected function report($position, $expecting) |
| 3026 | 3029 | { |
| 3027 | 3030 | if ($this->cut) { |
@@ -3044,6 +3047,9 @@ discard block |
||
| 3044 | 3047 | return implode(', ', end($this->warnings)); |
| 3045 | 3048 | } |
| 3046 | 3049 | |
| 3050 | + /** |
|
| 3051 | + * @param string $_string |
|
| 3052 | + */ |
|
| 3047 | 3053 | public function parse($_string) |
| 3048 | 3054 | { |
| 3049 | 3055 | $this->string = $_string; |
@@ -11,14 +11,9 @@ |
||
| 11 | 11 | use byrokrat\autogiro\Tree\RequestMandateRejectionNode; |
| 12 | 12 | use byrokrat\autogiro\Tree\RequestMandateUpdateNode; |
| 13 | 13 | use byrokrat\autogiro\Tree\RequestMandateDeletionNode; |
| 14 | -use byrokrat\autogiro\Tree\RequestIncomingTransactionNode; |
|
| 15 | -use byrokrat\autogiro\Tree\RequestOutgoingTransactionNode; |
|
| 16 | -use byrokrat\autogiro\Tree\RequestTransactionDeletionNode; |
|
| 17 | -use byrokrat\autogiro\Tree\RequestTransactionUpdateNode; |
|
| 18 | 14 | use byrokrat\autogiro\Tree\MandateResponseNode; |
| 19 | 15 | use byrokrat\autogiro\Tree\PersonalIdNode; |
| 20 | 16 | use byrokrat\autogiro\Tree\OrganizationIdNode; |
| 21 | -use byrokrat\autogiro\Tree\AmountNode; |
|
| 22 | 17 | use byrokrat\autogiro\Tree\AccountNode; |
| 23 | 18 | use byrokrat\autogiro\Tree\BankgiroNode; |
| 24 | 19 | use byrokrat\autogiro\Tree\MessageNode; |