Skip to content

Commit e4e1a1a

Browse files
committed
Add test for the fixed bug
1 parent b1a1d74 commit e4e1a1a

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

CHANGES.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog #
22

3+
## v2.1.1 (2015-08-08) ##
4+
5+
* Fixed object encoder not throwing an exception on some incorrect
6+
object.format values.
7+
* Fixed coding standards issues around the code and api documentation
8+
* Improved Travis build process
9+
310
## v2.1.0 (2015-04-18) ##
411

512
* Encoder options with `null` default value will now be recognized
@@ -20,9 +27,9 @@
2027
## v2.0.2 (2015-01-21) ##
2128

2229
* `array.align` will now respect `array.omit` and `array.inline` settings if
23-
all the keys in the array can be omitted.
24-
* Clarified documentation on how these settings are intended to work
25-
together.
30+
all the keys in the array can be omitted.
31+
* Clarified documentation on how these settings are intended to work
32+
together.
2633

2734
## v2.0.1 (2015-01-11) ##
2835

tests/tests/ObjectEncodingTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,11 @@ public function testInvalidFormat()
132132
$this->setExpectedException('RuntimeException');
133133
$encoder->encode(new \stdClass());
134134
}
135+
136+
public function testInvalidFormatValueType()
137+
{
138+
$encoder = new PHPEncoder(['object.format' => true]);
139+
$this->setExpectedException('RuntimeException');
140+
$encoder->encode(new \stdClass());
141+
}
135142
}

0 commit comments

Comments
 (0)