assertTrue( file_exists( $this->getDbPath() ) ); } /** * @depends testItCreatesSchema */ public function testItUpdatesSchema() { $config = ActivityPubConfig::createBuilder() ->setDbConnectionParams( array( 'driver' => 'pdo_sqlite', 'path' => $this->getDbPath(), ) ) ->build(); $activityPub = new ActivityPub( $config ); $activityPub->updateSchema(); $this->assertTrue( file_exists( $this->getDbPath() ) ); } protected function getDbPath() { return dirname( __FILE__ ) . '/db.sqlite'; } } ?>