@@ -6,6 +6,9 @@ |
||
6 | 6 | |
7 | 7 | class Parser |
8 | 8 | { |
9 | + /** |
|
10 | + * @param string $pathPattern |
|
11 | + */ |
|
9 | 12 | public function extractPlaceholders(Request $request, $pathPattern) |
10 | 13 | { |
11 | 14 | preg_match_all('#\{\w+\}#', $pathPattern, $placeholders, PREG_OFFSET_CAPTURE | PREG_SET_ORDER); |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace spec\Coduo\TuTu\Config\Element; |
4 | 4 | |
5 | 5 | use PhpSpec\ObjectBehavior; |
6 | -use Prophecy\Argument; |
|
7 | 6 | |
8 | 7 | class RequestSpec extends ObjectBehavior |
9 | 8 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace spec\Coduo\TuTu\Config\Element; |
4 | 4 | |
5 | 5 | use PhpSpec\ObjectBehavior; |
6 | -use Prophecy\Argument; |
|
7 | 6 | |
8 | 7 | class ResponseSpec extends ObjectBehavior |
9 | 8 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace spec\Coduo\TuTu\Config\Loader; |
4 | 4 | |
5 | 5 | use PhpSpec\ObjectBehavior; |
6 | -use Prophecy\Argument; |
|
7 | 6 | |
8 | 7 | class YamlLoaderSpec extends ObjectBehavior |
9 | 8 | { |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use Coduo\PHPMatcher\Factory\SimpleFactory; |
6 | 6 | use Coduo\TuTu\Config\Element; |
7 | 7 | use PhpSpec\ObjectBehavior; |
8 | -use Prophecy\Argument; |
|
9 | 8 | use Symfony\Component\HttpFoundation\Request; |
10 | 9 | |
11 | 10 | class BodyMatchingPolicySpec extends ObjectBehavior |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use Coduo\TuTu\Config\Element; |
6 | 6 | use Coduo\TuTu\Request\MatchingPolicy; |
7 | 7 | use PhpSpec\ObjectBehavior; |
8 | -use Prophecy\Argument; |
|
9 | 8 | use Symfony\Component\HttpFoundation\Request; |
10 | 9 | |
11 | 10 | class ChainMatchingPolicySpec extends ObjectBehavior |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use Coduo\PHPMatcher\Factory\SimpleFactory; |
6 | 6 | use Coduo\TuTu\Config\Element; |
7 | 7 | use PhpSpec\ObjectBehavior; |
8 | -use Prophecy\Argument; |
|
9 | 8 | use Symfony\Component\HttpFoundation\Request; |
10 | 9 | |
11 | 10 | class HeadersMatchingPolicySpec extends ObjectBehavior |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Coduo\TuTu\Config\Element; |
6 | 6 | use PhpSpec\ObjectBehavior; |
7 | -use Prophecy\Argument; |
|
8 | 7 | use Symfony\Component\HttpFoundation\Request; |
9 | 8 | |
10 | 9 | class MethodMatchingPolicySpec extends ObjectBehavior |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use Coduo\PHPMatcher\Factory\SimpleFactory; |
6 | 6 | use Coduo\TuTu\Config\Element; |
7 | 7 | use PhpSpec\ObjectBehavior; |
8 | -use Prophecy\Argument; |
|
9 | 8 | use Symfony\Component\HttpFoundation\Request; |
10 | 9 | |
11 | 10 | class ParameterMatchingPolicySpec extends ObjectBehavior |