/** * @param array $classes array containing all classes which should be executed */ private function upAction(array $classes) { foreach ($classes as $filename => $class) { $class->up(); $this->repository->insertMigrationVersion($filename); } }
/** * @covers de\detert\sebastian\slimline\db\Migration_Repository::__construct * @covers de\detert\sebastian\slimline\db\Migration_Repository::getHandler */ public function testShouldReturnHandler() { $repository = new Migration_Repository($this->handler); $this->assertSame($this->handler, $repository->getHandler()); }