Skip to content

Commit

Permalink
Se agregand mas coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo Cruz committed Sep 27, 2017
1 parent 8a7e758 commit 9fa2bd8
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 15 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.idea
build/*
build
sftp-config.json
*.sublime-project
*.sublime-workspace
Expand Down
6 changes: 3 additions & 3 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tools:
config: { level: psr4 }

checks:
php:
php:
verify_property_names: true
verify_argument_usable_as_reference: true
verify_access_scope_valid: true
Expand All @@ -39,8 +39,8 @@ checks:
require_scope_for_methods: true
require_php_tag_first: true
remove_extra_empty_lines: true
psr2_switch_declaration: true
psr2_class_declaration: true
psr4_switch_declaration: true
psr4_class_declaration: true
property_assignments: true
prefer_while_loop_over_for_loop: true
properties_in_camelcaps: true
Expand Down
10 changes: 5 additions & 5 deletions src/Logger/GraylogLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @copyright Copyright (c) 2018 Rioxygen. (http://www.Rioxygen.com/)
* @license Copyright
*/
namespace Rioxygen\Graylog;
namespace Rioxygen\Graylog\Logger;

use Psr\Log\LoggerInterface;
use Zend\Log\Logger;
Expand All @@ -14,7 +14,7 @@
*
* @version 1.0
*/
class GraylogLogger implements LoggerInterface
{

}
//class GraylogLogger implements LoggerInterface
//{
//
//}
18 changes: 11 additions & 7 deletions src/Logger/ZendLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,36 @@
* @copyright Copyright (c) 2018 Rioxygen. (http://www.Rioxygen.com/)
* @license Copyright
*/
namespace Rioxygen\Graylog;
namespace Rioxygen\Graylog\Logger;

use Psr\Log\LoggerInterface;
use Rioxygen\Graylog\LoggerAdapter;
use Zend\Log\Logger;
use Gelf\Logger;
use Gelf\Logger as GelfLogger;

/**
*
* @version 1.0
*/
class ZendLogger extends LoggerAdapter implements LoggerInterface
{
private function prepare() {
public function __construct($options = array()) {
parent::__construct($options);
}

protected function prepare() {
;
}
private function validate() {
protected function validate() {
;
}
private function process() {
protected function process() {
;
}
private function execute() {
protected function execute() {
;
}
public function emergency(){
public function emergency($message, array $context = array()){

}
public function alert($message, array $context = array())
Expand Down
31 changes: 31 additions & 0 deletions tests/Logger/ZendLoggerTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php
/**
* Rioxygen
* @copyright Copyright (c) 2018 Rioxygen. (http://www.Rioxygen.com/)
* @license Copyright
*/
namespace Rioxygen\Graylog\Logger;

use Rioxygen\Graylog\Logger\ZendLogger;

/**
* Test de Clase
* @author Ricardo Ruiz <ricardojesus.ruizcruz@gmail.com>
* @version 1.0
*/
class ZendLoggerTest extends \PHPUnit_Framework_TestCase
{
public function testMockRates()
{
$rateAdapter = new ZendLogger([
'prod' => false,
'key' => 'XXX',
'password' => 'XXX',
'accountNumber' => 'XXX',
'meterNumber' => 'XXX',
'dropOffType' => 'BUSINESS_SERVICE_CENTER',
#'requestAdapter' => new StubFedex,
]);

}
}

0 comments on commit 9fa2bd8

Please sign in to comment.