| @@ 71-77 (lines=7) @@ | ||
| 68 | static::assertEquals(['string', 'integer'], $builder->getDisabledParsers()); |
|
| 69 | } |
|
| 70 | ||
| 71 | public function testGetSetPropertyMatcher() |
|
| 72 | { |
|
| 73 | $builder = Array2ObjectBuilder::create(); |
|
| 74 | $matcher = new CamelizeMatcher(); |
|
| 75 | $builder->setMatcher($matcher); |
|
| 76 | static::assertEquals($matcher, $builder->getMatcher()); |
|
| 77 | } |
|
| 78 | ||
| 79 | public function testGetSetPropertyWriter() |
|
| 80 | { |
|
| @@ 48-54 (lines=7) @@ | ||
| 45 | static::assertEquals(['integer' => new IntegerParser(), 'string' => new StringParser()], $context->getParsers()); |
|
| 46 | } |
|
| 47 | ||
| 48 | public function testGetSetPropertyMatcher() |
|
| 49 | { |
|
| 50 | $context = new Array2ObjectContext(); |
|
| 51 | $matcher = new CamelizeMatcher(); |
|
| 52 | $context->setMatcher($matcher); |
|
| 53 | static::assertEquals($matcher, $context->getMatcher()); |
|
| 54 | } |
|
| 55 | ||
| 56 | public function testGetSetPropertyWriter() |
|
| 57 | { |
|