Beispiel #1
0
 public function testEncoding()
 {
     /* Given... (Fixture) */
     $coder = new JsonCoder();
     $data = ['some_key' => "This is so a test."];
     /* When... (Action) */
     $actual = $coder->encode($data);
     /* Then... (Assertions) */
     $expected = self::JSON_SIMPLE_SAMPLE;
     $this->assertSame($expected, $actual);
 }