getMessage(), 'Plugin name may only contain alphanumeric characters and underscores and cannot start with a number.' ); } try { R::__callStatic( '---', function() {} ); fail(); } catch ( RedException $e ) { asrt( $e->getMessage(), 'Plugin name may only contain alphanumeric characters and underscores and cannot start with a number.' ); } try { R::invalidMethod(); fail(); } catch ( RedException $e ) { asrt( $e->getMessage(), 'Plugin \'invalidMethod\' does not exist, add this plugin using: R::ext(\'invalidMethod\')' ); } } }