Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing ModelsCalculationsTest #2709

Closed
hexogen opened this issue Aug 16, 2014 · 4 comments
Closed

Testing ModelsCalculationsTest #2709

hexogen opened this issue Aug 16, 2014 · 4 comments

Comments

@hexogen
Copy link

hexogen commented Aug 16, 2014

UnitTest failed on:
Testing ModelsCalculationsTest Literals are disabled in PHQL statements
#0 [internal function]: Phalcon\Mvc\Model\Query->parse()
#1 [internal function]: Phalcon\Mvc\Model\Query->execute(NULL, NULL)
#2 [internal function]: Phalcon\Mvc\Model::_groupResult('COUNT', 'rowcount', 'estado='A'')
#3 /home/user/Builds/cphalcon/unit-tests/ModelsCalculationsTest.php(137): Phalcon\Mvc\Model::count('estado='A'')
#4 /home/user/Builds/cphalcon/unit-tests/ModelsCalculationsTest.php(77): ModelsCalculationsTest->_executeTestsNormal(Object(Phalcon\DI))
#5 /home/user/Builds/cphalcon/unit-tests/manual-unit.php(133): ModelsCalculationsTest->testCalculationsMysql()
#6 /home/user/Builds/cphalcon/unit-tests/manual-unit.php(176): PHPUnit_Framework_TestCase::main('ModelsCalculati...')
#7 {main}

Environment:
OS: Ubuntu 14.04 x64
Server: Apache 2.4
Phalcon: 1.3.2
CPU: i5 4690k

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@hexogen hexogen changed the title TEst Testing ModelsCalculationsTest Literals are disabled in PHQL statements Aug 16, 2014
@hexogen hexogen changed the title Testing ModelsCalculationsTest Literals are disabled in PHQL statements Testing ModelsCalculationsTest Aug 16, 2014
@phalcon
Copy link
Collaborator

phalcon commented Nov 13, 2014

Could you please try again with 2.0.0?

@hexogen
Copy link
Author

hexogen commented Jan 28, 2015

$ phpunit --debug -c unit-tests/phpunit.xml
PHPUnit 3.7.9 by Sebastian Bergmann.

Configuration read from /home/hexogen/Builds/phalcon/cphalcon/unit-tests/phpunit.xml

Starting test 'AnnotationsAdaptersTest::testMemoryAdapter'.
.
Starting test 'AnnotationsAdaptersTest::testFilesAdapter'.
.
Starting test 'AnnotationsAdaptersTest::testApcAdapter'.
S
Starting test 'AnnotationsAdaptersTest::testXcacheAdapter'.
S
Starting test 'AnnotationsTest::testParser'.
.
Starting test 'AnnotationsTest::testParserNoClass'.
.
Starting test 'AnnotationsTest::testReflection'.
.
Starting test 'ApplicationMvcTest::testApplicationSingleModule'.
.
Starting test 'ApplicationMvcTest::testApplicationModulesDefinition'.
.
Starting test 'ApplicationMvcTest::testApplicationModulesDefinitionClosure'.
.
Starting test 'BeanstalkTest::testBasic'.
S
Starting test 'BeanstalkTest::testReleaseKickBury'.
S
Starting test 'CacheResultsetTest::testCacheResultsetNormal'.
.
Starting test 'CacheResultsetTest::testCacheResultsetBinding'.
.
Starting test 'CacheResultsetTest::testCacheResultsetSimple'.
.
Starting test 'CacheResultsetTest::testCacheResultsetSimpleNoComplete'.
.
Starting test 'CacheResultsetTest::testCacheResultsetSimpleNoComplex'.
.
Starting test 'CacheResultsetTest::testCacheResultsetSimpleMemcached'.
.
Starting test 'CacheResultsetTest::testCacheResultsetSimpleLibmemcached'.
Segmentation fault (core dumped)

// phalcon 2.0.0

@hexogen
Copy link
Author

hexogen commented Jan 28, 2015

With phpunit 4.4 I can't launch the tests.

@andresgutierrez
Copy link
Contributor

This is now fixed in 2.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants