Created
July 24, 2012 01:18
-
-
Save drupalista-br/3167313 to your computer and use it in GitHub Desktop.
Sample code of how to implement a bank plugin unit test mockery.
This file contains 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 | |
/** | |
* @file | |
* Unit testing. | |
*/ | |
require_once "../../../unit-testing/boleto.test.php"; | |
class TestOfXXX extends BoletoTestCase{ | |
protected $mockingArguments; | |
function mockingArguments() { | |
$this->mockingArguments = array( | |
array( | |
// Argumentos do Primeiro test case. | |
), | |
array( | |
// Argumentos do Segundo test case. | |
), | |
// E assim por diante. Dê uma olhada no simpletest.php do | |
// Banco do Brasil para um exemplo com mais de um test case. | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment