Skip to content

Commit

Permalink
Fix PHPUnit code coverage, and fix some bugs too
Browse files Browse the repository at this point in the history
  • Loading branch information
rjmackay committed Apr 3, 2017
1 parent bfc4f93 commit 88a2588
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 85 deletions.
22 changes: 0 additions & 22 deletions application/classes/ORM.php

This file was deleted.

60 changes: 0 additions & 60 deletions application/classes/Unittest/Database/TestCase.php

This file was deleted.

7 changes: 7 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
<directory>./tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./application/classes</directory>
<directory suffix=".php">./src</directory>
<directory suffix=".php">./plugins/*/classes</directory>
</whitelist>
</filter>
<logging>
<log type="coverage-clover" target="coverage/phpunit.xml"/>
</logging>
Expand Down
4 changes: 2 additions & 2 deletions src/App/FilesystemAdapter/Rackspace.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
namespace Ushahidi\App\FilesystemAdapter;

use OpenCloud\OpenStack;
use OpenCloud\Rackspace;
use OpenCloud\Rackspace as OCRackspace;
use League\Flysystem\Filesystem;
use League\Flysystem\Rackspace\RackspaceAdapter as Adapter;
use Ushahidi\Core\Tool\FilesystemAdapter;
Expand All @@ -29,7 +29,7 @@ public function __construct($config)

public function getAdapter()
{
$client = new Rackspace(Rackspace::US_IDENTITY_ENDPOINT, array(
$client = new OCRackspace(OCRackspace::US_IDENTITY_ENDPOINT, array(
'username' => $this->config['username'],
'apiKey' => $this->config['apiKey'],
));
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Usecase/Post/StatsPostRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ interface StatsPostRepository
* @param SearchData $search
* @return Array
*/
public function getGroupedTotals(SearchData $search)
public function getGroupedTotals(SearchData $search);
}

0 comments on commit 88a2588

Please sign in to comment.