/** * Test for function loadDecodedData. */ public function testLoadDecodedData() { $expectedResult = array('value' => (string) microtime()); $this->writeResultToSelfTestDecodedFile($expectedResult); $this->dataFileFixturesHelper->setDataFormat('self-test'); $actualResult = $this->dataFileFixturesHelper->loadDecodedData(); $this->assertEquals($expectedResult, $actualResult); }
/** * This method is called before the first test of this test class is run. */ public static function setUpBeforeClass() { self::$dataFileFixturesHelper = new DataFileFixturesHelper(); self::$dataFileFixturesHelper->setDataFormat(self::DATA_FORMAT_JSON); }