This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php defined('SYSPATH') OR die('No direct access allowed.'); | |
/** | |
* Ushahidi API Stats Controller | |
* | |
* @author Ushahidi Team <[email protected]> | |
* @package Ushahidi\Application\Controllers | |
* @copyright 2013 Ushahidi | |
* @license https://www.gnu.org/licenses/agpl-3.0.html GNU Affero General Public License Version 3 (AGPL3) | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php defined('SYSPATH') OR die('No direct access allowed.'); | |
/** | |
* Ushahidi API Stats Controller | |
* | |
* @author Ushahidi Team <[email protected]> | |
* @package Ushahidi\Application\Controllers | |
* @copyright 2013 Ushahidi | |
* @license https://www.gnu.org/licenses/agpl-3.0.html GNU Affero General Public License Version 3 (AGPL3) | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@statsFixture @oauth2Skip | |
Feature: Testing the Stats API | |
@resetFixture | |
Scenario: Getting a count | |
Given that I want to get a count | |
When I request "/stats" | |
Then the response is JSON | |
And the response has a "count" property | |
And the type of the "count" property is "numeric" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Lindas-MacBook-Pro-4:Lamu phpmechanix$ sudo bin/behat --config application/tests/behat.yml application/tests/features/api.media.feature --format progress | |
Password: | |
...........................................F--------------------- | |
| api/v2/media | |
| | |
| HTTP/1.1 200 OK | |
| Date: Mon, 26 May 2014 09:06:46 GMT | |
| Server: Apache/2.2.27 (Unix) DAV/2 PHP/5.5.12 mod_ssl/2.2.27 OpenSSL/0.9.8y | |
| X-Powered-By: PHP/5.5.12 | |
| Content-Length: 330 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php defined('SYSPATH') OR die('No direct script access.'); | |
/** | |
* Ushahidi API Media Controller | |
* | |
* @author Ushahidi Team <[email protected]> | |
* @package Ushahidi\Application\Controllers | |
* @copyright 2013 Ushahidi | |
* @license https://www.gnu.org/licenses/agpl-3.0.html GNU Affero General Public License Version 3 (AGPL3) | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php defined('SYSPATH') OR die('No direct access allowed.'); | |
/** | |
* Ushahidi Media Repository | |
* | |
* @author Ushahidi Team <[email protected]> | |
* @package Ushahidi\Application | |
* @copyright 2014 Ushahidi | |
* @license https://www.gnu.org/licenses/agpl-3.0.html GNU Affero | |
* General Public License Version 3 (AGPL3) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php defined('SYSPATH') OR die('No direct access allowed.'); | |
/** | |
* Ushahidi Media Repository | |
* | |
* @author Ushahidi Team <[email protected]> | |
* @package Ushahidi\Application | |
* @copyright 2014 Ushahidi | |
* @license https://www.gnu.org/licenses/agpl-3.0.html GNU Affero | |
* General Public License Version 3 (AGPL3) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php defined('SYSPATH') OR die('No direct script access.'); | |
/** | |
* Ushahidi API Media Controller | |
* | |
* @author Ushahidi Team <[email protected]> | |
* @package Ushahidi\Application\Controllers | |
* @copyright 2013 Ushahidi | |
* @license https://www.gnu.org/licenses/agpl-3.0.html GNU Affero General Public License Version 3 (AGPL3) | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php defined('SYSPATH') OR die('No direct script access.'); | |
/** | |
* Ushahidi API Media Controller | |
* | |
* @author Ushahidi Team <[email protected]> | |
* @package Ushahidi\Application\Controllers | |
* @copyright 2013 Ushahidi | |
* @license https://www.gnu.org/licenses/agpl-3.0.html GNU Affero General Public License Version 3 (AGPL3) | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php defined('SYSPATH') OR die('No direct access allowed.'); | |
/** | |
* Ushahidi Media Repository | |
* | |
* @author Ushahidi Team <[email protected]> | |
* @package Ushahidi\Application | |
* @copyright 2014 Ushahidi | |
* @license https://www.gnu.org/licenses/agpl-3.0.html GNU Affero | |
* General Public License Version 3 (AGPL3) |