$t = new lime_test(5); $handler = new sfGeneratorConfigHandler(); $handler->initialize(); $dir = dirname(__FILE__).DIRECTORY_SEPARATOR.'fixtures'.DIRECTORY_SEPARATOR.'sfGeneratorConfigHandler'.DIRECTORY_SEPARATOR; $t->diag('parse errors'); $files = array( $dir.'empty.yml', $dir.'no_generator_class.yml', ); try { $data = $handler->execute($files); $t->fail('generator.yml must have a "class" section'); } catch (sfParseException $e) { $t->like($e->getMessage(), '/must specify a generator class section under the generator section/', 'generator.yml must have a "class" section'); } $files = array( $dir.'empty.yml', $dir.'no_generator_section.yml', ); try { $data = $handler->execute($files);