📍 /home/diasdiamonds/public_html/vendor/cakephp/bake/src/Template/Bake/tests
📝 Editando: test_case.twig
{# /** * Test Case bake template * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain the above copyright notice. * * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://cakephp.org CakePHP(tm) Project * @since 2.0.0 * @license http://www.opensource.org/licenses/mit-license.php MIT License */ #} {% set isController = type|lower == 'controller' %} {% set isShell = type|lower == 'shell' %} {% if isController %} {%- set superClassName = 'IntegrationTestCase' %} {% elseif isShell %} {%- set superClassName = 'ConsoleIntegrationTestCase' %} {% else %} {%- set superClassName = 'TestCase' %} {% endif %} {%- set uses = uses|merge(["Cake\\TestSuite\\#{superClassName}"]) %} {%- set uses = uses|sort %} <?php namespace {{ baseNamespace }}\Test\TestCase\{{ subNamespace }}; {% for dependency in uses %} use {{ dependency }}; {% endfor %} /** * {{ fullClassName }} Test Case */ class {{ className }}Test extends {{ superClassName }} { {% if properties %} {% for propertyInfo in properties %} /** * {{ propertyInfo.description }} * * @var {{ propertyInfo.type }} */ public ${{ propertyInfo.name }}{% if propertyInfo.value is defined and propertyInfo.value %} = {{ propertyInfo.value }}{% endif %}; {% endfor %} {% endif %} {%- if fixtures %} /** * Fixtures * * @var array */ public $fixtures = [{{ Bake.stringifyList(fixtures|values)|raw }}]; {% endif %} {%- if construction %} /** * setUp method * * @return void */ public function setUp() { parent::setUp(); {% if preConstruct %} {{ preConstruct|raw }} {% endif %} $this->{{ (subject ~ ' = ' ~ construction)|raw }} {% if postConstruct %} {{ postConstruct|raw }} {% endif %} } /** * tearDown method * * @return void */ public function tearDown() { unset($this->{{ subject }}); parent::tearDown(); } {% endif %} {%- for method in methods %} /** * Test {{ method }} method * * @return void */ public function test{{ method|camelize }}() { $this->markTestIncomplete('Not implemented yet.'); } {% endfor %} {%- if not methods %} /** * Test initial setup * * @return void */ public function testInitialization() { $this->markTestIncomplete('Not implemented yet.'); } {% endif %} }
[ Cancelar ]
Nome
Permissões
Ações
[ .. Voltar ]
📄 fixture.twig
0644
[ EDITAR/VER ]
📄 test_case.twig
0644
[ EDITAR/VER ]