* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ require_once(dirname(__FILE__).'/../../../bootstrap/unit.php'); $t = new lime_test(2); // __construct() $t->diag('__construct()'); $e = new sfI18nYamlValidateExtractor(); $t->ok($e instanceof sfI18nExtractorInterface, 'sfI18nYamlValidateExtractor implements the sfI18nExtractorInterface interface'); // ->extract(); $t->diag('->extract()'); $content = <<is($e->extract($content), array( 'Name is required', 'The name is too short', 'The name is really too short', 'The name is really too long', ), '->extract() extracts strings from generator.yml files');