for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace tas2580\seourls\tests\base;
abstract class database_test extends \phpbb_database_test_case
{
static protected function setup_extensions()
static
return array('tas2580/seourls');
}
protected $db;
public function setUp()
parent::setUp();
global $db;
global
Instead of relying on global state, we recommend one of these alternatives:
function myFunction($a, $b) { // Do something }
class MyClass { private $a; private $b; public function __construct($a, $b) { $this->a = $a; $this->b = $b; } public function myFunction() { // Do something } }
$db = $this->db = $this->new_dbal();