This file contains 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('BASEPATH') OR exit('No direct script access allowed'); | |
class WhoopsErrorHandler { | |
function WhoopsConfig() | |
{ | |
$whoops = new \Whoops\Run; | |
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler); | |
$whoops->register(); | |
} |
This file contains 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
{ | |
"description": "The CodeIgniter framework", | |
"name": "codeigniter/framework", | |
"type": "project", | |
"homepage": "https://codeigniter.com", | |
"license": "MIT", | |
"support": { | |
"forum": "http://forum.codeigniter.com/", | |
"wiki": "https://github.com/bcit-ci/CodeIgniter/wiki", | |
"irc": "irc://irc.freenode.net/codeigniter", |
This file contains 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('BASEPATH') OR exit('No direct script access allowed'); | |
class Welcome extends CI_Controller { | |
/** | |
* Carrega a página principal | |
*/ | |
public function Index() | |
{ | |
$this->load->view('welcome_message'); |
This file contains 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('BASEPATH') OR exit('No direct script access allowed'); | |
/** | |
* IBM Watson - Visual Recognition | |
* | |
* @package CodeIgniter | |
* @subpackage Libraries | |
* @category IMB Watson | |
* @author Jonathan Lamim Antunes <dev@jlamim.com.br> |
This file contains 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
{ | |
"vars": { | |
"@gray-base": "#000", | |
"@gray-darker": "lighten(@gray-base, 13.5%)", | |
"@gray-dark": "lighten(@gray-base, 20%)", | |
"@gray": "lighten(@gray-base, 33.5%)", | |
"@gray-light": "lighten(@gray-base, 46.7%)", | |
"@gray-lighter": "lighten(@gray-base, 93.5%)", | |
"@brand-primary": "darken(#428bca, 6.5%)", | |
"@brand-success": "#5cb85c", |
This file contains 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('BASEPATH') OR exit('No direct script access allowed'); | |
class Testes extends CI_Controller { | |
public function __construct() | |
{ | |
parent::__construct(); | |
$this->load->library('unit_test'); | |
} |
This file contains 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 | |
class SampleTest extends PHPUnit_Framework_TestCase | |
{ | |
private $CI; | |
public function setUp() | |
{ | |
$this->CI = &get_instance(); | |
} |
This file contains 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 | |
/* | |
*--------------------------------------------------------------- | |
* APPLICATION ENVIRONMENT | |
*--------------------------------------------------------------- | |
*/ | |
define('ENVIRONMENT', 'testing'); | |
/* | |
*--------------------------------------------------------------- | |
* DS CONSTANT VERIFICATION |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<phpunit | |
colors="true" | |
bootstrap="tests/Bootstrap.php"> | |
<testsuites> | |
<testsuite name="CITools Test Suite"> | |
<directory>./tests/</directory> | |
</testsuite> | |
</testsuites> |
This file contains 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 | |
class SampleTest extends PHPUnit_Framework_TestCase | |
{ | |
public function testPushAndPop() | |
{ | |
$stack = array(); | |
$this->assertEquals(0, count($stack)); |