Skip to content

Instantly share code, notes, and snippets.

@stephenmelrose
Created January 29, 2014 21:31
Show Gist options
  • Save stephenmelrose/8697644 to your computer and use it in GitHub Desktop.
Save stephenmelrose/8697644 to your computer and use it in GitHub Desktop.
Multiple test cases
<?php
public function testProcessTimePeriod_GetProcessingData()
{
// TransactionRepository::getProcessingDataByTimePeriodAndAccountId should return false
// TransactionRepository::getProcessingDataByTimePeriodAndAccountId should return an empty array
}
public function testProcessTimePeriod_SortTransactions()
{
// TransactionRepository::sortTransactionsFunction should sort the transactions into the correct order
}
public function testProcessTimePeriod_UpdateRows()
{
// TransactionRepository::updateMultipleRaw should return false
// TransactionRepository::updateMultipleRaw should return true
}
public function testProcessTimePeriod_CalculatesBalances()
{
// TransactionRepository::getLastBalanceBeforeTimePeriodByAccountId should return false
// Should calculate the correct balances
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment