4
4
5
5
[ ![ Scrutinizer Code Quality] ( https://scrutinizer-ci.com/g/coduo/php-matcher/badges/quality-score.png?b=master )] ( https://scrutinizer-ci.com/g/coduo/php-matcher/?branch=master )
6
6
7
- * [ ![ Build Status] ( https://travis-ci.org/coduo/php-matcher.svg )] ( https://travis-ci.org/coduo/php-matcher ) - master (3.0.* )
7
+ * [ ![ Build Status] ( https://travis-ci.org/coduo/php-matcher.svg )] ( https://travis-ci.org/coduo/php-matcher ) - master (3.1.* )
8
+ * [ ![ Build Status] ( https://travis-ci.org/coduo/php-matcher.svg?branch=3.0 )] ( https://travis-ci.org/coduo/php-matcher ) - 3.0.*
8
9
* [ ![ Build Status] ( https://travis-ci.org/coduo/php-matcher.svg?branch=2.2 )] ( https://travis-ci.org/coduo/php-matcher ) - 2.2.*
9
10
* [ ![ Build Status] ( https://travis-ci.org/coduo/php-matcher.svg?branch=2.1 )] ( https://travis-ci.org/coduo/php-matcher ) - 2.1.*
10
11
* [ ![ Build Status] ( https://travis-ci.org/coduo/php-matcher.svg?branch=2.0 )] ( https://travis-ci.org/coduo/php-matcher ) - 2.0.*
11
12
12
- [ Readme for master (3.0) version] ( https://github.com/coduo/php-matcher/tree/master/README.md )
13
+ [ Readme for master (3.1) version] ( https://github.com/coduo/php-matcher/tree/master/README.md )
14
+ [ Readme for 3.0 version] ( https://github.com/coduo/php-matcher/tree/3.0/README.md )
13
15
[ Readme for 2.2 version] ( https://github.com/coduo/php-matcher/tree/2.2/README.md )
14
16
[ Readme for 2.1 version] ( https://github.com/coduo/php-matcher/tree/2.1/README.md )
15
17
[ Readme for 2.0 version] ( https://github.com/coduo/php-matcher/tree/2.0/README.md )
@@ -100,7 +102,7 @@ $factory = new SimpleFactory();
100
102
$matcher = $factory->createMatcher();
101
103
102
104
$matcher->match(1, 1);
103
- $matcher->match('string', 'string')
105
+ $matcher->match('string', 'string');
104
106
```
105
107
106
108
### String matching
@@ -114,7 +116,7 @@ $factory = new SimpleFactory();
114
116
$matcher = $factory->createMatcher();
115
117
116
118
$matcher->match('Norbert', '@string@');
117
- $matcher->match("lorem ipsum dolor", "@
[email protected] ('lorem').contains('ipsum').endsWith('dolor')")
119
+ $matcher->match("lorem ipsum dolor", "@
[email protected] ('lorem').contains('ipsum').endsWith('dolor')")
;
118
120
119
121
```
120
122
@@ -188,12 +190,12 @@ use Coduo\PHPMatcher\Factory\SimpleFactory;
188
190
$factory = new SimpleFactory();
189
191
$matcher = $factory->createMatcher();
190
192
191
- $matcher->match("@integer@", "@*@"),
192
- $matcher->match("foobar", "@*@"),
193
- $matcher->match(true, "@*@"),
194
- $matcher->match(6.66, "@*@"),
195
- $matcher->match(array("bar"), "@wildcard@"),
196
- $matcher->match(new \stdClass, "@wildcard@"),
193
+ $matcher->match("@integer@", "@*@");
194
+ $matcher->match("foobar", "@*@");
195
+ $matcher->match(true, "@*@");
196
+ $matcher->match(6.66, "@*@");
197
+ $matcher->match(array("bar"), "@wildcard@");
198
+ $matcher->match(new \stdClass, "@wildcard@");
197
199
```
198
200
199
201
### Expression matching
@@ -279,7 +281,7 @@ $matcher->match(
279
281
'@boolean@',
280
282
'@double@'
281
283
)
282
- )
284
+ );
283
285
```
284
286
285
287
### Json matching
@@ -313,8 +315,7 @@ $matcher->match(
313
315
}
314
316
]
315
317
}'
316
- )
317
-
318
+ );
318
319
```
319
320
320
321
### Xml matching
0 commit comments