Wordpress Nonce OOP Implementation. Just an OOP wrap.
$ composer require manuel-rod/wp_nonce_oop
$nonce = new WP_Nonce('wp_action_nonce');
$nonce->createNonce()
$nonce->verifyNonce($nonce)
$nonce->nonceField($name = '_wpnonce', $referrer = true, $echo = true)
$nonce->nonceUrl($url, $name = '_wpnonce')
$nonce->checkAdminReferer($name = '_wpnonce')
$nonce->checkAjaxReferer($name = false, $die = true)
Copy phpunit.xml.dist to phpunit.xml and modify to your needs.
$ cd vendor/manuelRod/WP_Nonce_OOP
$ composer install
$ vendor/bin/phpunit
MIT