/** * Set up a test case. * * @see WP_UnitTestCase::setup() */ function setUp() { parent::setUp(); try { require_once 'includes/Yubico/U2F.php'; $this->u2f = new u2flib_server\U2F("http://demo.example.com"); $this->provider = Two_Factor_FIDO_U2F::get_instance(); } catch (Exception $e) { $this->markTestSkipped('Could not create U2F provider!'); } }