Skip to content

Instantly share code, notes, and snippets.

@drupalista-br
Created July 24, 2012 01:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drupalista-br/3167313 to your computer and use it in GitHub Desktop.
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.
<?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