public function __construct($themePath, Theme $theme = null, $code = 0, \Exception $previous = null) { $fields = implode(', ', $theme->getMissingRequiredFields()); parent::__construct($themePath, $theme, "is missing {$theme->countMissingRequiredFields()} required field(s): [ {$fields} ].", $code, $previous); }
/** * @test * @group theme */ public function testThemeAutoload() { $theme = new Theme(themes_base_path() . '/test-autoload'); $theme->registerAutoload(); $this->assertTrue(class_exists('ThemeManager\\TestAutoload\\TestAutoloadServiceProvider')); }