Last active
December 14, 2015 01:19
-
-
Save willmendesneto/5005595 to your computer and use it in GitHub Desktop.
Gist do post "Testes no Codeigniter com CIUnit" no meu blog Link:http://willmendesnetoprojects.wordpress.com/2013/02/21/testes-no-codeigniter-com-ciunit/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class VerificationTests extends CIUnit_TestCase { | |
/** | |
* Conteúdo que vai acontecer no início dos testes | |
* @return void | |
*/ | |
public function setUp(){ | |
parent::setUp(); | |
parent::tearDown(); | |
} | |
/** | |
* Teste para verificar o CIUnit está rodando corretamente | |
* @return void | |
*/ | |
public function test_CIUnitIsRun(){ | |
$boolean = TRUE; | |
$this->assertTrue($boolean); | |
$this->assertEquals($boolean, TRUE); | |
} | |
/** | |
* Conteúdo que vai rodar no término do teste | |
* @return void | |
*/ | |
public function tearDown(){ | |
// Insira aqui o conteúdo | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment