createDatabaseInterface(); DatabaseInterface::$instance = $dbi; $response = new ResponseRenderer(); $template = new Template(new Config()); $relation = new Relation($dbi); $controller = new SecondStepController( $response, new Normalization($dbi, $relation, new Transformations($dbi, $relation), $template), ); $controller(self::createStub(ServerRequest::class)); self::assertSame([ 'legendText' => 'Step 1.2 Have a primary key', 'headText' => 'Primary key already exists.', 'subText' => 'Taking you to next step…', 'hasPrimaryKey' => '1', 'extra' => '', ], $response->getJSONResult()); } }