Skip to content

Commit d7973cf

Browse files
author
Robert Pohl
committed
unit test console comments
1 parent eeefd93 commit d7973cf

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

test/api_base_Test.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,22 @@ class api_base_Test extends mondido\test\test_base {
1212

1313
public function testGetApiUrl()
1414
{
15+
echo "Testing api_base::getApiUrl()\n";
16+
1517
$url = mondido\api\api_base::getApiUrl();
1618
$this->assertEquals('https://api.mondido.com/v1/', $url);
1719
}
1820

1921
public function testPassword()
2022
{
23+
echo "Testing api_base::getPassword()\n";
2124
$val = mondido\api\api_base::getPassword();
2225
$this->assertEquals('custom00', $val);
2326
}
2427

2528
public function testUsername()
2629
{
30+
echo "Testing api_base::getUsername()\n";
2731
$val = mondido\api\api_base::getUsername();
2832
$this->assertEquals('3', $val);
2933
}

test/api_transaction_Test.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,14 @@
1515
class api_transaction_Test extends test_base {
1616

1717
public function testGetTransaction(){
18+
echo "Testing transaction::get\n";
19+
1820
$transaction = transaction::get(443);
1921
$this->assertEquals(443, $transaction['id']);
2022
}
2123

2224
public function testGetTransactionsLimitOffset(){
25+
echo "Testing transaction::index\n";
2326
$transactions = transaction::index(10,0);
2427
$this->assertEquals(10, count($transactions));
2528
}

test/webhook_Test.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@
1515

1616
class webhook_Test extends test_base {
1717

18+
/**
19+
* @covers webhook::get
20+
*/
1821
public function testGetwebhook(){
22+
echo "Testing webhook::get\n";
1923
$transaction = transaction::get(443);
2024
$path = 'wh.json';
2125
file_put_contents($path, json_encode($transaction));

0 commit comments

Comments
 (0)