-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi folks!
I start a new app on my local Linux machine (Linux THOR 3.8.0-29-generic
#42-Ubuntu SMP Tue Aug 13 19:40:39 UTC 2013 x86_64 x86_64 x86_64
GNU/Linux) Cake Version 2.3.9
and want to give test driven development a try. I have set up my test
database and use my root access for testing. I have baked everything via
console and want now to start.
I created my first method in my first model and want to run the test for
it. And even when I reduce me test method to:
$result = 2;
$expected = 2;
$this->assertEquals($expected, $result);
I get a huge load of errors.
What I can make of it that somehow it isn't able to fill my mysql table
with the baked fixture:
"Warning: Fixture creation for "_cycles" failed "SQLSTATE[42000]: Syntax
error or access violation: 1065 Query was empty"
Here comes the complete output, at the bottom are my settings and versions.
Has anybody an idea where to start fixing this?
Thanks in advance!
Anja
<h2>Running CycleTest</h2>
Warning: Fixture creation for "_cycles" failed "SQLSTATE[42000]: Syntax
error or access violation: 1065 Query was empty" in
/var/www/lunaneu/lib/Cake/TestSuite/Fixture/CakeTestFixture.php on line 235
Call Stack:
0.0006 249448 1. {main}() /var/www/lunaneu/luna/webroot/test.php:0
0.0550 1995720 2. CakeTestSuiteDispatcher::run()
/var/www/lunaneu/luna/webroot/test.php:100
0.0550 1996072 3. CakeTestSuiteDispatcher->dispatch()
/var/www/lunaneu/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php:117
0.0693 2853992 4. CakeTestSuiteDispatcher->_runTestCase()
/var/www/lunaneu/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php:100
0.0734 3071856 5. CakeTestSuiteCommand->run($argv = array (0 =>
'--filter', 1 => FALSE, 2 => '--output', 3 => 'html', 4 => '--fixture',
5 => NULL), $exit = ???)
/var/www/lunaneu/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php:247
0.1178 4236416 6. CakeTestRunner->doRun($suite = class
PHPUnit_Framework_TestSuite { protected $backupGlobals = NULL; protected
$backupStaticAttributes = NULL; protected $name = 'CycleTest'; protected
$groups = array ('__nogroup__' => array (...)); protected $tests = array
(0 => class CycleTest { ... }); protected $numTests = -1; protected
$testCase = TRUE }, $arguments = array ('listGroups' => FALSE, 'loader'
=> class CakeTestLoader { }, 'useDefaultConfiguration' => TRUE,
'filter' => FALSE, 'printer' => class CakeHtmlReporter { protected
$_headerSent = TRUE; public $params = array (...); protected
$_characterSet = 'utf-8'; protected $column = 0; protected $maxColumn =
NULL; protected $lastTestFailed = FALSE; protected $numAssertions = 0;
protected $numTests = -1; protected $numTestsRun = 0; protected
$numTestsWidth = NULL; protected $colors = FALSE; protected $debug =
FALSE; protected $verbose = FALSE; protected $autoFlush = FALSE;
protected $out = NULL; protected $outTarget = NULL; protected
$printsHTML = FALSE }, 'fixtureManager' => NULL, 'testSuffixes' => array
(0 => 'Test.php', 1 => '.phpt')))
/var/www/lunaneu/lib/Cake/TestSuite/CakeTestSuiteCommand.php:97
0.1472 5655080 7. PHPUnit_TextUI_TestRunner->doRun($suite =
class PHPUnit_Framework_TestSuite { protected $backupGlobals = NULL;
protected $backupStaticAttributes = NULL; protected $name = 'CycleTest';
protected $groups = array ('__nogroup__' => array (...)); protected
$tests = array (0 => class CycleTest { ... }); protected $numTests = -1;
protected $testCase = TRUE }, $arguments = array ('listGroups' => FALSE,
'loader' => class CakeTestLoader { }, 'useDefaultConfiguration' =>
TRUE, 'filter' => FALSE, 'printer' => class CakeHtmlReporter { protected
$_headerSent = TRUE; public $params = array (...); protected
$_characterSet = 'utf-8'; protected $column = 0; protected $maxColumn =
NULL; protected $lastTestFailed = FALSE; protected $numAssertions = 0;
protected $numTests = -1; protected $numTestsRun = 0; protected
$numTestsWidth = NULL; protected $colors = FALSE; protected $debug =
FALSE; protected $verbose = FALSE; protected $autoFlush = FALSE;
protected $out = NULL; protected $outTarget = NULL; protected
$printsHTML = FALSE }, 'fixtureManager' => NULL, 'testSuffixes' => array
(0 => 'Test.php', 1 => '.phpt')))
/var/www/lunaneu/lib/Cake/TestSuite/CakeTestRunner.php:63
0.1496 5798040 8. PHPUnit_Framework_TestSuite->run($result =
class PHPUnit_Framework_TestResult { protected $passed = array ();
protected $errors = array (); protected $deprecatedFeatures = array ();
protected $failures = array (); protected $notImplemented = array ();
protected $skipped = array (); protected $listeners = array (0 => class
CakeHtmlReporter { ... }, 1 => class
PHPUnit_Util_DeprecatedFeature_Logger { ... }); protected $runTests = 0;
protected $time = 0; protected $topTestSuite = class
PHPUnit_Framework_TestSuite { protected $backupGlobals = NULL; protected
$backupStaticAttributes = NULL; protected $name = 'CycleTest'; protected
$groups = array (...); protected $tests = array (...); protected
$numTests = -1; protected $testCase = TRUE }; protected $codeCoverage =
NULL; protected $convertErrorsToExceptions = TRUE; protected $stop =
FALSE; protected $stopOnError = FALSE; protected $stopOnFailure = FALSE;
protected $strictMode = FALSE; protected $stopOnIncomplete = FALSE;
protected $stopOnSkipped = FALSE; protected $lastTestFailed = FALSE;
protected $timeoutForSmallTests = 1; protected $timeoutForMediumTests =
10; protected $timeoutForLargeTests = 60 }, $filter = FALSE, $groups =
array (), $excludeGroups = array (), $processIsolation = FALSE)
/usr/share/php/PHPUnit/TextUI/TestRunner.php:349
0.1619 6532112 9. PHPUnit_Framework_TestSuite->runTest($test =
class CycleTest { public $fixtures = array (0 => 'app.cycle', 1 =>
'app.user'); public $fixtureManager = class CakeFixtureManager {
protected $_initialized = TRUE; protected $_db = class Mysql { ... };
protected $_loaded = array (...); protected $_fixtureMap = array (...);
public $_processed = array (...) }; public $autoFixtures = TRUE; public
$dropTables = TRUE; protected $_configure = array (); protected
$_pathRestore = array (); protected $backupGlobals = NULL; protected
$backupGlobalsBlacklist = array (); protected $backupStaticAttributes =
NULL; protected $backupStaticAttributesBlacklist = array (); protected
$runTestInSeparateProcess = FALSE; protected $preserveGlobalState =
TRUE; private ${PHPUnit_Framework_TestCase}:inIsolation = FALSE; private
${PHPUnit_Framework_TestCase}:data = array (); private
${PHPUnit_Framework_TestCase}:dataName = ''; private
${PHPUnit_Framework_TestCase}:useErrorHandler = NULL; private
${PHPUnit_Framework_TestCase}:useOutputBuffering = NULL; private
${PHPUnit_Framework_TestCase}:expectedException = NULL; private
${PHPUnit_Framework_TestCase}:expectedExceptionMessage = ''; private
${PHPUnit_Framework_TestCase}:expectedExceptionCode = NULL; private
${PHPUnit_Framework_TestCase}:required = array ('PHP' => NULL, 'PHPUnit'
=> NULL, 'functions' => array (...), 'extensions' => array (...));
private ${PHPUnit_Framework_TestCase}:name = 'testGetNextForUser';
private ${PHPUnit_Framework_TestCase}:dependencies = array (); private
${PHPUnit_Framework_TestCase}:dependencyInput = array (); private
${PHPUnit_Framework_TestCase}:iniSettings = array (); private
${PHPUnit_Framework_TestCase}:locale = array (); private
${PHPUnit_Framework_TestCase}:mockObjects = array (); private
${PHPUnit_Framework_TestCase}:status = NULL; private
${PHPUnit_Framework_TestCase}:statusMessage = ''; private
${PHPUnit_Framework_TestCase}:numAssertions = 0; private
${PHPUnit_Framework_TestCase}:result = NULL; private
${PHPUnit_Framework_TestCase}:testResult = NULL; private
${PHPUnit_Framework_TestCase}:output = ''; private
${PHPUnit_Framework_TestCase}:outputExpectedRegex = NULL; private
${PHPUnit_Framework_TestCase}:outputExpectedString = NULL; private
${PHPUnit_Framework_TestCase}:hasPerformedExpectationsOnOutput = FALSE;
private ${PHPUnit_Framework_TestCase}:outputCallback = FALSE; private
${PHPUnit_Framework_TestCase}:outputBufferingActive = FALSE; public $db
= class Mysql { public $description = 'MySQL DBO Driver'; protected
$_baseConfig = array (...); protected $_connection = class PDO { ... };
public $startQuote = '`'; public $endQuote = '`'; protected $_useAlias =
TRUE; public $fieldParameters = array (...); public $tableParameters =
array (...); public $columns = array (...); protected $_charsets = array
(...); public $index = array (...); public $alias = 'AS '; public
$cacheMethods = TRUE; public $useNestedTransactions = FALSE; public
$fullDebug = TRUE; public $affected = NULL; public $numRows = NULL;
public $took = NULL; protected $_result = NULL; protected $_queriesCnt =
1; protected $_queriesTime = 0; protected $_queriesLog = array (...);
protected $_queriesLogMax = 200; protected $_queryCache = array (...);
public $configKeyName = 'test'; protected $_sqlOps = array (...);
protected $_transactionNesting = 0; protected $_queryDefaults = array
(...); public $virtualFieldSeparator = '__'; protected
$_methodCacheChange = TRUE; public $connected = TRUE; protected
$_descriptions = array (...); protected $_sources = NULL; public $config
= array (...); protected $_transactionStarted = TRUE; public
$cacheSources = FALSE } }, $result = class PHPUnit_Framework_TestResult
{ protected $passed = array (); protected $errors = array (); protected
$deprecatedFeatures = array (); protected $failures = array ();
protected $notImplemented = array (); protected $skipped = array ();
protected $listeners = array (0 => class CakeHtmlReporter { ... }, 1 =>
class PHPUnit_Util_DeprecatedFeature_Logger { ... }); protected
$runTests = 0; protected $time = 0; protected $topTestSuite = class
PHPUnit_Framework_TestSuite { protected $backupGlobals = NULL; protected
$backupStaticAttributes = NULL; protected $name = 'CycleTest'; protected
$groups = array (...); protected $tests = array (...); protected
$numTests = -1; protected $testCase = TRUE }; protected $codeCoverage =
NULL; protected $convertErrorsToExceptions = TRUE; protected $stop =
FALSE; protected $stopOnError = FALSE; protected $stopOnFailure = FALSE;
protected $strictMode = FALSE; protected $stopOnIncomplete = FALSE;
protected $stopOnSkipped = FALSE; protected $lastTestFailed = FALSE;
protected $timeoutForSmallTests = 1; protected $timeoutForMediumTests =
10; protected $timeoutForLargeTests = 60 })
/usr/share/php/PHPUnit/Framework/TestSuite.php:745
0.1619 6532144 10. CakeTestCase->run($result = class
PHPUnit_Framework_TestResult { protected $passed = array (); protected
$errors = array (); protected $deprecatedFeatures = array (); protected
$failures = array (); protected $notImplemented = array (); protected
$skipped = array (); protected $listeners = array (0 => class
CakeHtmlReporter { ... }, 1 => class
PHPUnit_Util_DeprecatedFeature_Logger { ... }); protected $runTests = 0;
protected $time = 0; protected $topTestSuite = class
PHPUnit_Framework_TestSuite { protected $backupGlobals = NULL; protected
$backupStaticAttributes = NULL; protected $name = 'CycleTest'; protected
$groups = array (...); protected $tests = array (...); protected
$numTests = -1; protected $testCase = TRUE }; protected $codeCoverage =
NULL; protected $convertErrorsToExceptions = TRUE; protected $stop =
FALSE; protected $stopOnError = FALSE; protected $stopOnFailure = FALSE;
protected $strictMode = FALSE; protected $stopOnIncomplete = FALSE;
protected $stopOnSkipped = FALSE; protected $lastTestFailed = FALSE;
protected $timeoutForSmallTests = 1; protected $timeoutForMediumTests =
10; protected $timeoutForLargeTests = 60 })
/usr/share/php/PHPUnit/Framework/TestSuite.php:775
0.1619 6532272 11. CakeFixtureManager->load($test = class
CycleTest { public $fixtures = array (0 => 'app.cycle', 1 =>
'app.user'); public $fixtureManager = class CakeFixtureManager {
protected $_initialized = TRUE; protected $_db = class Mysql { ... };
protected $_loaded = array (...); protected $_fixtureMap = array (...);
public $_processed = array (...) }; public $autoFixtures = TRUE; public
$dropTables = TRUE; protected $_configure = array (); protected
$_pathRestore = array (); protected $backupGlobals = NULL; protected
$backupGlobalsBlacklist = array (); protected $backupStaticAttributes =
NULL; protected $backupStaticAttributesBlacklist = array (); protected
$runTestInSeparateProcess = FALSE; protected $preserveGlobalState =
TRUE; private ${PHPUnit_Framework_TestCase}:inIsolation = FALSE; private
${PHPUnit_Framework_TestCase}:data = array (); private
${PHPUnit_Framework_TestCase}:dataName = ''; private
${PHPUnit_Framework_TestCase}:useErrorHandler = NULL; private
${PHPUnit_Framework_TestCase}:useOutputBuffering = NULL; private
${PHPUnit_Framework_TestCase}:expectedException = NULL; private
${PHPUnit_Framework_TestCase}:expectedExceptionMessage = ''; private
${PHPUnit_Framework_TestCase}:expectedExceptionCode = NULL; private
${PHPUnit_Framework_TestCase}:required = array ('PHP' => NULL, 'PHPUnit'
=> NULL, 'functions' => array (...), 'extensions' => array (...));
private ${PHPUnit_Framework_TestCase}:name = 'testGetNextForUser';
private ${PHPUnit_Framework_TestCase}:dependencies = array (); private
${PHPUnit_Framework_TestCase}:dependencyInput = array (); private
${PHPUnit_Framework_TestCase}:iniSettings = array (); private
${PHPUnit_Framework_TestCase}:locale = array (); private
${PHPUnit_Framework_TestCase}:mockObjects = array (); private
${PHPUnit_Framework_TestCase}:status = NULL; private
${PHPUnit_Framework_TestCase}:statusMessage = ''; private
${PHPUnit_Framework_TestCase}:numAssertions = 0; private
${PHPUnit_Framework_TestCase}:result = NULL; private
${PHPUnit_Framework_TestCase}:testResult = NULL; private
${PHPUnit_Framework_TestCase}:output = ''; private
${PHPUnit_Framework_TestCase}:outputExpectedRegex = NULL; private
${PHPUnit_Framework_TestCase}:outputExpectedString = NULL; private
${PHPUnit_Framework_TestCase}:hasPerformedExpectationsOnOutput = FALSE;
private ${PHPUnit_Framework_TestCase}:outputCallback = FALSE; private
${PHPUnit_Framework_TestCase}:outputBufferingActive = FALSE; public $db
= class Mysql { public $description = 'MySQL DBO Driver'; protected
$_baseConfig = array (...); protected $_connection = class PDO { ... };
public $startQuote = '`'; public $endQuote = '`'; protected $_useAlias =
TRUE; public $fieldParameters = array (...); public $tableParameters =
array (...); public $columns = array (...); protected $_charsets = array
(...); public $index = array (...); public $alias = 'AS '; public
$cacheMethods = TRUE; public $useNestedTransactions = FALSE; public
$fullDebug = TRUE; public $affected = NULL; public $numRows = NULL;
public $took = NULL; protected $_result = NULL; protected $_queriesCnt =
1; protected $_queriesTime = 0; protected $_queriesLog = array (...);
protected $_queriesLogMax = 200; protected $_queryCache = array (...);
public $configKeyName = 'test'; protected $_sqlOps = array (...);
protected $_transactionNesting = 0; protected $_queryDefaults = array
(...); public $virtualFieldSeparator = '__'; protected
$_methodCacheChange = TRUE; public $connected = TRUE; protected
$_descriptions = array (...); protected $_sources = NULL; public $config
= array (...); protected $_transactionStarted = TRUE; public
$cacheSources = FALSE } })
/var/www/lunaneu/lib/Cake/TestSuite/CakeTestCase.php:82
0.1621 6534592 12. CakeFixtureManager->_setupTable($fixture =
class CycleFixture { public $table = '_cycles'; public $fields = array
('id' => array (...), 'user_id' => array (...), 'start' => array (...),
'usernummer' => array (...), 'indexes' => array (...), 'tableParameters'
=> array (...)); public $records = array (0 => array (...), 1 => array
(...), 2 => array (...)); public $name = 'Cycle'; public $db = NULL;
public $useDbConfig = 'test'; public $created = array (); public
$primaryKey = 'id'; public $Schema = class CakeSchema { public $name =
'TestSuite'; public $path = '/var/www/lunaneu/luna/Config/Schema';
public $file = 'schema.php'; public $connection = 'test'; public $plugin
= NULL; public $tables = array (...) } }, $db = class Mysql { public
$description = 'MySQL DBO Driver'; protected $_baseConfig = array
('persistent' => TRUE, 'host' => 'localhost', 'login' => 'root',
'password' => '', 'database' => 'cake', 'port' => '3306'); protected
$_connection = class PDO { }; public $startQuote = '`'; public
$endQuote = '`'; protected $_useAlias = TRUE; public $fieldParameters =
array ('charset' => array (...), 'collate' => array (...), 'comment' =>
array (...)); public $tableParameters = array ('charset' => array (...),
'collate' => array (...), 'engine' => array (...)); public $columns =
array ('primary_key' => array (...), 'string' => array (...), 'text' =>
array (...), 'biginteger' => array (...), 'integer' => array (...),
'float' => array (...), 'datetime' => array (...), 'timestamp' => array
(...), 'time' => array (...), 'date' => array (...), 'binary' => array
(...), 'boolean' => array (...)); protected $_charsets = array ();
public $index = array ('PRI' => 'primary', 'MUL' => 'index', 'UNI' =>
'unique'); public $alias = 'AS '; public $cacheMethods = TRUE; public
$useNestedTransactions = FALSE; public $fullDebug = TRUE; public
$affected = NULL; public $numRows = NULL; public $took = NULL; protected
$_result = NULL; protected $_queriesCnt = 1; protected $_queriesTime =
0; protected $_queriesLog = array (0 => array (...)); protected
$_queriesLogMax = 200; protected $_queryCache = array (); public
$configKeyName = 'test'; protected $_sqlOps = array (0 => 'like', 1 =>
'ilike', 2 => 'or', 3 => 'not', 4 => 'in', 5 => 'between', 6 =>
'regexp', 7 => 'similar to'); protected $_transactionNesting = 0;
protected $_queryDefaults = array ('conditions' => array (...), 'fields'
=> NULL, 'table' => NULL, 'alias' => NULL, 'order' => NULL, 'limit' =>
NULL, 'joins' => array (...), 'group' => NULL, 'offset' => NULL); public
$virtualFieldSeparator = '__'; protected $_methodCacheChange = TRUE;
public $connected = TRUE; protected $_descriptions = array (); protected
$_sources = NULL; public $config = array ('persistent' => FALSE, 'host'
=> 'localhost', 'login' => 'root', 'password' => 'lo9ki8', 'database' =>
'lunatest', 'port' => '3306', 'datasource' => 'Database/Mysql', 'prefix'
=> 'lz', 'encoding' => 'utf8'); protected $_transactionStarted = TRUE;
public $cacheSources = FALSE }, $drop = TRUE)
/var/www/lunaneu/lib/Cake/TestSuite/Fixture/CakeFixtureManager.php:213
0.1678 6550184 13. CakeTestFixture->create($db = class Mysql {
public $description = 'MySQL DBO Driver'; protected $_baseConfig = array
('persistent' => TRUE, 'host' => 'localhost', 'login' => 'root',
'password' => '', 'database' => 'cake', 'port' => '3306'); protected
$_connection = class PDO { }; public $startQuote = '`'; public
$endQuote = '`'; protected $_useAlias = TRUE; public $fieldParameters =
array ('charset' => array (...), 'collate' => array (...), 'comment' =>
array (...)); public $tableParameters = array ('charset' => array (...),
'collate' => array (...), 'engine' => array (...)); public $columns =
array ('primary_key' => array (...), 'string' => array (...), 'text' =>
array (...), 'biginteger' => array (...), 'integer' => array (...),
'float' => array (...), 'datetime' => array (...), 'timestamp' => array
(...), 'time' => array (...), 'date' => array (...), 'binary' => array
(...), 'boolean' => array (...)); protected $_charsets = array ();
public $index = array ('PRI' => 'primary', 'MUL' => 'index', 'UNI' =>
'unique'); public $alias = 'AS '; public $cacheMethods = TRUE; public
$useNestedTransactions = FALSE; public $fullDebug = TRUE; public
$affected = NULL; public $numRows = NULL; public $took = NULL; protected
$_result = NULL; protected $_queriesCnt = 1; protected $_queriesTime =
0; protected $_queriesLog = array (0 => array (...)); protected
$_queriesLogMax = 200; protected $_queryCache = array (); public
$configKeyName = 'test'; protected $_sqlOps = array (0 => 'like', 1 =>
'ilike', 2 => 'or', 3 => 'not', 4 => 'in', 5 => 'between', 6 =>
'regexp', 7 => 'similar to'); protected $_transactionNesting = 0;
protected $_queryDefaults = array ('conditions' => array (...), 'fields'
=> NULL, 'table' => NULL, 'alias' => NULL, 'order' => NULL, 'limit' =>
NULL, 'joins' => array (...), 'group' => NULL, 'offset' => NULL); public
$virtualFieldSeparator = '__'; protected $_methodCacheChange = TRUE;
public $connected = TRUE; protected $_descriptions = array (); protected
$_sources = NULL; public $config = array ('persistent' => FALSE, 'host'
=> 'localhost', 'login' => 'root', 'password' => 'lo9ki8', 'database' =>
'lunatest', 'port' => '3306', 'datasource' => 'Database/Mysql', 'prefix'
=> 'lz', 'encoding' => 'utf8'); protected $_transactionStarted = TRUE;
public $cacheSources = FALSE })
/var/www/lunaneu/lib/Cake/TestSuite/Fixture/CakeFixtureManager.php:185
0.1749 6602472 14. trigger_error('Fixture creation for "_cycles"
failed "SQLSTATE[42000]: Syntax error or access violation: 1065 Query
was empty"', 512)
/var/www/lunaneu/lib/Cake/TestSuite/Fixture/CakeTestFixture.php:235
Variables in local scope (#13):
$args = *uninitialized*
$canUseMemory = *uninitialized*
$db = class Mysql { public $description = 'MySQL DBO Driver';
protected $_baseConfig = array ('persistent' => TRUE, 'host' =>
'localhost', 'login' => 'root', 'password' => '', 'database' => 'cake',
'port' => '3306'); protected $_connection = class PDO { }; public
$startQuote = '`'; public $endQuote = '`'; protected $_useAlias = TRUE;
public $fieldParameters = array ('charset' => array (...), 'collate' =>
array (...), 'comment' => array (...)); public $tableParameters = array
('charset' => array (...), 'collate' => array (...), 'engine' => array
(...)); public $columns = array ('primary_key' => array (...), 'string'
=> array (...), 'text' => array (...), 'biginteger' => array (...),
'integer' => array (...), 'float' => array (...), 'datetime' => array
(...), 'timestamp' => array (...), 'time' => array (...), 'date' =>
array (...), 'binary' => array (...), 'boolean' => array (...));
protected $_charsets = array (); public $index = array ('PRI' =>
'primary', 'MUL' => 'index', 'UNI' => 'unique'); public $alias = 'AS ';
public $cacheMethods = TRUE; public $useNestedTransactions = FALSE;
public $fullDebug = TRUE; public $affected = NULL; public $numRows =
NULL; public $took = NULL; protected $_result = NULL; protected
$_queriesCnt = 1; protected $_queriesTime = 0; protected $_queriesLog =
array (0 => array (...)); protected $_queriesLogMax = 200; protected
$_queryCache = array (); public $configKeyName = 'test'; protected
$_sqlOps = array (0 => 'like', 1 => 'ilike', 2 => 'or', 3 => 'not', 4 =>
'in', 5 => 'between', 6 => 'regexp', 7 => 'similar to'); protected
$_transactionNesting = 0; protected $_queryDefaults = array
('conditions' => array (...), 'fields' => NULL, 'table' => NULL, 'alias'
=> NULL, 'order' => NULL, 'limit' => NULL, 'joins' => array (...),
'group' => NULL, 'offset' => NULL); public $virtualFieldSeparator =
'__'; protected $_methodCacheChange = TRUE; public $connected = TRUE;
protected $_descriptions = array (); protected $_sources = NULL; public
$config = array ('persistent' => FALSE, 'host' => 'localhost', 'login'
=> 'root', 'password' => 'lo9ki8', 'database' => 'lunatest', 'port' =>
'3306', 'datasource' => 'Database/Mysql', 'prefix' => 'lz', 'encoding'
=> 'utf8'); protected $_transactionStarted = TRUE; public $cacheSources
= FALSE }
$e = class PDOException { protected $message = 'SQLSTATE[42000]:
Syntax error or access violation: 1065 Query was empty'; private
${Exception}:string = ''; protected $code = '42000'; protected $file =
'/var/www/lunaneu/lib/Cake/Model/Datasource/DboSource.php'; protected
$line = 460; private ${Exception}:trace = array (0 => array (...), 1 =>
array (...), 2 => array (...), 3 => array (...), 4 => array (...), 5 =>
array (...), 6 => array (...), 7 => array (...), 8 => array (...), 9 =>
array (...), 10 => array (...), 11 => array (...), 12 => array (...), 13
=> array (...), 14 => array (...)); private ${Exception}:previous =
NULL; public $errorInfo = array (0 => '42000', 1 => 1065, 2 => 'Query
was empty'); public $xdebug_message = '\nPDOException: SQLSTATE[42000]:
Syntax error or access violation: 1065 Query was empty in
/var/www/lunaneu/lib/Cake/Model/Datasource/DboSource.php on line
460\n\nCall Stack:\n 0.0006 249448 1. {main}()
/var/www/lunaneu/luna/webroot/test.php:0\n 0.0550 1995720 2.
CakeTestSuiteDispatcher::run()
/var/www/lunaneu/luna/webroot/test.php:100\n 0.0550 1996072 3.
CakeTestSuiteDispatcher->dispatch()
/var/www/lunaneu/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php:117\n
0.0693 2853992 4. CakeTestSuiteDispatcher->_runTestCase()
/var/www/lunaneu/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php:100\n
0.0734 3071856 5. CakeTestSuiteCommand->run($argv = array (0 =>
\'--filter\', 1 => FALSE, 2 => \'--output\', 3 => \'html\', 4 =>
\'--fixture\', 5 => NULL), $exit = ???)
/var/www/lunaneu/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php:247\n
0.1178 4236416 6. CakeTestRunner->doRun($suite = class
PHPUnit_Framework_TestSuite { protected $backupGlobals = NULL; protected
$backupStaticAtt...'; public $queryString = '' }
$msg = 'Fixture creation for "_cycles" failed "SQLSTATE[42000]: Syntax
error or access violation: 1065 Query was empty"'
$type = *uninitialized*
I am using:
$ pear list -c phpunit
Installed packages, channel pear.phpunit.de:
============================================
Package Version State
File_Iterator 1.3.3 stable
PHPUnit 3.7.24 stable
PHPUnit_MockObject 1.2.3 stable
PHP_CodeCoverage 1.2.12 stable
PHP_Timer 1.0.5 stable
PHP_TokenStream 1.2.0 stable
Text_Template 1.1.4 stable
$ php -v
PHP 5.4.9-4ubuntu2.2 (cli) (built: Jul 15 2013 18:23:35)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlIjjjAACgkQbOdiIJzHNKGoDQCgmk1nEYu6CVlBYEHSuz5hMi79
ymoAnR9Ezgdh8VRb1JjwfqrSZeA9vMkk
=q6Rb
-----END PGP SIGNATURE-----
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.
Sunday, September 1, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment