/** * 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); }
/** * Test if buildCreatedFilePath function * builds proper path. */ public function testBuildCreatedFilePath() { $expectedPath = realpath(__DIR__ . '/../data/created/') . DIRECTORY_SEPARATOR . 'self-test'; $actualPath = $this->dataFileFixturesHelper->buildCreatedFilePath('self-test'); $this->assertEquals($expectedPath, $actualPath); }