Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
SQLTester | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
|||
SQLTest | n/a |
0 / 0 |
|
100.00% |
24 / 24 |
24 | n/a |
0 / 0 |
||
setUp | |
100.00% |
1 / 1 |
1 | n/a |
0 / 0 |
||||
tearDown | |
100.00% |
1 / 1 |
1 | n/a |
0 / 0 |
||||
testConnect | |
100.00% |
1 / 1 |
1 | n/a |
0 / 0 |
||||
testSelectDB | |
100.00% |
1 / 1 |
1 | n/a |
0 / 0 |
||||
testGetInsertID | |
100.00% |
1 / 1 |
1 | n/a |
0 / 0 |
||||
testPing | |
100.00% |
1 / 1 |
1 | n/a |
0 / 0 |
||||
test__wakeup | |
100.00% |
1 / 1 |
1 | n/a |
0 / 0 |
||||
testSanitizeQuery | |
100.00% |
1 / 1 |
1 | n/a |
0 / 0 |
||||
testMakeReport | |
100.00% |
1 / 1 |
1 | n/a |
0 / 0 |
||||
testSetUp | |
100.00% |
1 / 1 |
1 | n/a |
0 / 0 |
||||
testSetTable | |
100.00% |
1 / 1 |
1 | n/a |
0 / 0 |
||||
testGetNumRows | |
100.00% |
1 / 1 |
1 | n/a |
0 / 0 |
||||
testGetLastQuery | |
100.00% |
1 / 1 |
1 | n/a |
0 / 0 |
||||
testGetlastInsertID | |
100.00% |
1 / 1 |
1 | n/a |
0 / 0 |
||||
testGetLastError | |
100.00% |
1 / 1 |
1 | n/a |
0 / 0 |
||||
testLogError | |
100.00% |
1 / 1 |
1 | n/a |
0 / 0 |
||||
test__sleep | |
100.00% |
1 / 1 |
1 | n/a |
0 / 0 |
||||
test__destruct | |
100.00% |
1 / 1 |
1 | n/a |
0 / 0 |
||||
testQueryTo2DArray | |
100.00% |
1 / 1 |
1 | n/a |
0 / 0 |
||||
testArrayToSetQuery | |
100.00% |
1 / 1 |
1 | n/a |
0 / 0 |
||||
testQueryToValue | |
100.00% |
1 / 1 |
1 | n/a |
0 / 0 |
||||
testQueryToCount | |
100.00% |
1 / 1 |
1 | n/a |
0 / 0 |
||||
testGetColumnComma | |
100.00% |
1 / 1 |
1 | n/a |
0 / 0 |
||||
testEaseAddSlashes | |
100.00% |
1 / 1 |
1 | n/a |
0 / 0 |
<?php | |
namespace Test\Ease\SQL; | |
use Ease\SQL\SQL; | |
class SQLTester extends SQL | |
{ | |
} | |
/** | |
* Generated by PHPUnit_SkeletonGenerator on 2016-01-17 at 23:58:20. | |
*/ | |
class SQLTest extends \Test\Ease\SandTest | |
{ | |
/** | |
* @var SQL | |
*/ | |
protected $object; | |
/** | |
* Sets up the fixture, for example, opens a network connection. | |
* This method is called before a test is executed. | |
*/ | |
protected function setUp() | |
{ | |
$this->object = new SQLTester(); | |
} | |
/** | |
* Tears down the fixture, for example, closes a network connection. | |
* This method is called after a test is executed. | |
*/ | |
protected function tearDown() | |
{ | |
} | |
/** | |
* @covers Ease\SQL\SQL::connect | |
* | |
* @todo Implement testConnect(). | |
*/ | |
public function testConnect() | |
{ | |
// Remove the following lines when you implement this test. | |
$this->markTestIncomplete( | |
'This test has not been implemented yet.' | |
); | |
} | |
/** | |
* @covers Ease\SQL\SQL::selectDB | |
* | |
* @todo Implement testSelectDB(). | |
*/ | |
public function testSelectDB() | |
{ | |
// Remove the following lines when you implement this test. | |
$this->markTestIncomplete( | |
'This test has not been implemented yet.' | |
); | |
} | |
/** | |
* @covers Ease\SQL\SQL::getInsertID | |
* | |
* @todo Implement testGetInsertID(). | |
*/ | |
public function testGetInsertID() | |
{ | |
// Remove the following lines when you implement this test. | |
$this->markTestIncomplete( | |
'This test has not been implemented yet.' | |
); | |
} | |
/** | |
* @covers Ease\SQL\SQL::ping | |
* | |
* @todo Implement testPing(). | |
*/ | |
public function testPing() | |
{ | |
// Remove the following lines when you implement this test. | |
$this->markTestIncomplete( | |
'This test has not been implemented yet.' | |
); | |
} | |
/** | |
* @covers Ease\SQL\SQL::__wakeup | |
* | |
* @todo Implement test__wakeup(). | |
*/ | |
public function test__wakeup() | |
{ | |
// Remove the following lines when you implement this test. | |
$this->markTestIncomplete( | |
'This test has not been implemented yet.' | |
); | |
} | |
/** | |
* @covers Ease\SQL\SQL::sanitizeQuery | |
* | |
* @todo Implement testSanitizeQuery(). | |
*/ | |
public function testSanitizeQuery() | |
{ | |
// Remove the following lines when you implement this test. | |
$this->markTestIncomplete( | |
'This test has not been implemented yet.' | |
); | |
} | |
/** | |
* @covers Ease\SQL\SQL::makeReport | |
* | |
* @todo Implement testMakeReport(). | |
*/ | |
public function testMakeReport() | |
{ | |
// Remove the following lines when you implement this test. | |
$this->markTestIncomplete( | |
'This test has not been implemented yet.' | |
); | |
} | |
/** | |
* @covers Ease\SQL\SQL::setUp | |
* | |
* @todo Implement testSetUp(). | |
*/ | |
public function testSetUp() | |
{ | |
// Remove the following lines when you implement this test. | |
$this->markTestIncomplete( | |
'This test has not been implemented yet.' | |
); | |
} | |
/** | |
* @covers Ease\SQL\SQL::setTable | |
* | |
* @todo Implement testSetTable(). | |
*/ | |
public function testSetTable() | |
{ | |
// Remove the following lines when you implement this test. | |
$this->markTestIncomplete( | |
'This test has not been implemented yet.' | |
); | |
} | |
/** | |
* @covers Ease\SQL\SQL::getNumRows | |
* | |
* @todo Implement testGetNumRows(). | |
*/ | |
public function testGetNumRows() | |
{ | |
// Remove the following lines when you implement this test. | |
$this->markTestIncomplete( | |
'This test has not been implemented yet.' | |
); | |
} | |
/** | |
* @covers Ease\SQL\SQL::getLastQuery | |
* | |
* @todo Implement testGetLastQuery(). | |
*/ | |
public function testGetLastQuery() | |
{ | |
// Remove the following lines when you implement this test. | |
$this->markTestIncomplete( | |
'This test has not been implemented yet.' | |
); | |
} | |
/** | |
* @covers Ease\SQL\SQL::getlastInsertID | |
* | |
* @todo Implement testGetlastInsertID(). | |
*/ | |
public function testGetlastInsertID() | |
{ | |
// Remove the following lines when you implement this test. | |
$this->markTestIncomplete( | |
'This test has not been implemented yet.' | |
); | |
} | |
/** | |
* @covers Ease\SQL\SQL::getLastError | |
* | |
* @todo Implement testGetLastError(). | |
*/ | |
public function testGetLastError() | |
{ | |
// Remove the following lines when you implement this test. | |
$this->markTestIncomplete( | |
'This test has not been implemented yet.' | |
); | |
} | |
/** | |
* @covers Ease\SQL\SQL::logError | |
* | |
* @todo Implement testLogError(). | |
*/ | |
public function testLogError() | |
{ | |
// Remove the following lines when you implement this test. | |
$this->markTestIncomplete( | |
'This test has not been implemented yet.' | |
); | |
} | |
/** | |
* @covers Ease\SQL\SQL::__sleep | |
* | |
* @todo Implement test__sleep(). | |
*/ | |
public function test__sleep() | |
{ | |
// Remove the following lines when you implement this test. | |
$this->markTestIncomplete( | |
'This test has not been implemented yet.' | |
); | |
} | |
/** | |
* @covers Ease\SQL\SQL::__destruct | |
* | |
* @todo Implement test__destruct(). | |
*/ | |
public function test__destruct() | |
{ | |
// Remove the following lines when you implement this test. | |
$this->markTestIncomplete( | |
'This test has not been implemented yet.' | |
); | |
} | |
/** | |
* @covers Ease\SQL\SQL::queryTo2DArray | |
* | |
* @todo Implement testQueryTo2DArray(). | |
*/ | |
public function testQueryTo2DArray() | |
{ | |
// Remove the following lines when you implement this test. | |
$this->markTestIncomplete( | |
'This test has not been implemented yet.' | |
); | |
} | |
/** | |
* @covers Ease\SQL\SQL::arrayToSetQuery | |
*/ | |
public function testArrayToSetQuery() | |
{ | |
$this->object->keyColumn = 'id'; | |
$sqlFragment = $this->object->arrayToSetQuery(['' => 'x', | |
'a' => 1, 'b' => 'word', | |
'c' => null, 'id' => 0, 'z' => 0.4, 'y' => true, 'x' => false, ]); | |
$this->assertEquals(" a = 1 , b = 'word' , c = null , z = 0.4 , y = TRUE , x = FALSE ", | |
$sqlFragment); | |
} | |
/** | |
* @covers Ease\SQL\SQL::queryToValue | |
* | |
* @todo Implement testQueryToValue(). | |
*/ | |
public function testQueryToValue() | |
{ | |
// Remove the following lines when you implement this test. | |
$this->markTestIncomplete( | |
'This test has not been implemented yet.' | |
); | |
} | |
/** | |
* @covers Ease\SQL\SQL::queryToCount | |
* | |
* @todo Implement testQueryToCount(). | |
*/ | |
public function testQueryToCount() | |
{ | |
// Remove the following lines when you implement this test. | |
$this->markTestIncomplete( | |
'This test has not been implemented yet.' | |
); | |
} | |
/** | |
* @covers Ease\SQL\SQL::getColumnComma | |
* | |
* @todo Implement testGetColumnComma(). | |
*/ | |
public function testGetColumnComma() | |
{ | |
// Remove the following lines when you implement this test. | |
$this->markTestIncomplete( | |
'This test has not been implemented yet.' | |
); | |
} | |
/** | |
* @covers Ease\SQL\SQL::easeAddSlashes | |
*/ | |
public function testEaseAddSlashes() | |
{ | |
$this->assertEquals("\'", $this->object->easeAddSlashes("'")); | |
} | |
} |