inputConverter = new InputInvalidateConverter(); } /** * Cleans up the environment after running a test. */ protected function tearDown() { $this->inputConverter = null; parent::tearDown(); } public function testConvertJson() { $testArray = array( 'foo' => 'bar', 'bla' => 'blub', ); $converted = $this->inputConverter->convertJson(json_encode($testArray)); $this->assertEquals($testArray, $converted); } public function testConvertAtom() { $this->testConvertJson(); } public function testConvertXml() { $this->testConvertJson(); } }