Skip to content

Commit

Permalink
added hard drive test
Browse files Browse the repository at this point in the history
  • Loading branch information
splitice committed Jul 2, 2014
1 parent 5e83419 commit db21e4d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 33 deletions.
33 changes: 0 additions & 33 deletions src/Splitice/BuyVM/IApiClient.php

This file was deleted.

10 changes: 10 additions & 0 deletions tests/ApiMethodsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,14 @@ function testBandwidth(){
$api = new BuyVMApi($client);
$api->get('bw');
}

function testHardDrive(){
//Assert
$client = $this->getMock(self::API_CLIENT);
$client->expects($this->once())->method('execute_info')->with($this->equalTo(array('hdd')))->will($this->returnValue(array('bw'=>'total,used,free,percentage')));

//Do
$api = new BuyVMApi($client);
$api->get('hdd');
}
}

0 comments on commit db21e4d

Please sign in to comment.