public function setUp() { MySQLHelper::resetMySQLDatabases(); $this->dbDriver = DbGet::factory(getUnitTestDbConfig('HELPER1')); $this->fixtureLoader = new FixtureLoader(FixtureTestCase::getFixturesRootPath(), $this->dbDriver); parent::setUp(); }
/** * @covers ::decode * * @expectedException \Kicaj\Test\Helper\Loader\FixtureLoaderException * @expectedExceptionMessage Unknown error */ public function test_decode_unknown_error() { // Given $fixtureLoader = new FixtureLoader(FixtureTestCase::getFixturesRootPath()); _WhatJsonLastError::$jsonLastErrorReturn = 10000; // Then $json = '{"does not matter what it is here": 1}'; $fixtureLoader->decode($json); }
/** * @throws \Exception */ public function setUp() { $this->fixturesRootPath = getFixturesRootPath(); $this->fixtureLoader = new FixtureLoader(FixtureTestCase::getFixturesRootPath()); }
/** * @covers ::getFixturesRootPath */ public function test_fixtureRootDirPath() { $got = FixtureTestCase::getFixturesRootPath(); $this->assertSame('test/fixtures', $got); }