/**
  * Returns an instance of Yepnope_Backend
  *
  * @return Yepnope_Backend $backend
  */
 public static function backend()
 {
     if (!self::$backend) {
         self::$backend = new Yepnope_Backend();
     }
     return self::$backend;
 }
 public function testNoTestsDoesNotIncludeYepnope()
 {
     Yepnope::eval_yepnope();
     $scripts = Requirements::get_custom_scripts();
     $javascripts = Requirements::backend()->get_javascript();
     $this->assertEquals('', $scripts, 'YepNope output found, even though no test were added');
     $this->assertEquals(array(), $javascripts, 'YepNope lib was included, even though no tests were added');
 }
 /**
  * Controller hook for evaluating Yepnope conditions after init() has been called
  * 
  * @return void
  */
 public function onAfterInit()
 {
     if (Yepnope::get_automatically_evaluate()) {
         Yepnope::eval_yepnope();
     }
 }