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

Test failure with mosquitto extension #1015

Closed
remicollet opened this issue Jul 12, 2017 · 2 comments
Closed

Test failure with mosquitto extension #1015

remicollet opened this issue Jul 12, 2017 · 2 comments

Comments

@remicollet
Copy link
Contributor

Without, test suite passes

With mosquitto 0.4.0 enabled:

PHPUnit 6.2.3 by Sebastian Bergmann and contributors.

.....AssertionError: The name cannot be empty in /tmp/phan/src/Phan/Language/FQSEN/FullyQualifiedGlobalStructuralElement.php:117
Stack trace:
#0 /tmp/phan/src/Phan/Language/FQSEN/FullyQualifiedGlobalStructuralElement.php(117): assert(false, 'The name cannot...')
#1 /tmp/phan/src/Phan/Memoize.php(76): Phan\Language\FQSEN\FullyQualifiedGlobalStructuralElement::Phan\Language\FQSEN\{closure}()
#2 /tmp/phan/src/Phan/Language/FQSEN/FullyQualifiedGlobalStructuralElement.php(133): Phan\Language\FQSEN\FullyQualifiedGlobalStructuralElement::memoizeStatic('Phan\\Language\\F...', Object(Closure))
#3 /tmp/phan/src/Phan/Language/Element/GlobalConstant.php(60): Phan\Language\FQSEN\FullyQualifiedGlobalStructuralElement::fromFullyQualifiedString('\\0')
#4 /tmp/phan/src/Phan/CodeBase.php(270): Phan\Language\Element\GlobalConstant::fromGlobalConstantName(Object(Phan\CodeBase), '0')
#5 /tmp/phan/src/Phan/CodeBase.php(162): Phan\CodeBase->addGlobalConstantsByNames(Array)
#6 /tmp/phan/tests/Phan/PhanTestListener.php(51): Phan\CodeBase->__construct(Array, Array, Array, Array, Array)
#7 /tmp/phan/vendor/phpunit/phpunit/src/Framework/TestResult.php(395): Phan\Tests\PhanTestListener->startTest(Object(Phan\Tests\PhanTest))
#8 /tmp/phan/vendor/phpunit/phpunit/src/Framework/TestResult.php(637): PHPUnit\Framework\TestResult->startTest(Object(Phan\Tests\PhanTest))
#9 /tmp/phan/vendor/phpunit/phpunit/src/Framework/TestCase.php(883): PHPUnit\Framework\TestResult->run(Object(Phan\Tests\PhanTest))
#10 /tmp/phan/vendor/phpunit/phpunit/src/Framework/TestSuite.php(746): PHPUnit\Framework\TestCase->run(Object(PHPUnit\Framework\TestResult))
#11 /tmp/phan/vendor/phpunit/phpunit/src/Framework/TestSuite.php(746): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#12 /tmp/phan/vendor/phpunit/phpunit/src/Framework/TestSuite.php(746): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#13 /tmp/phan/vendor/phpunit/phpunit/src/Framework/TestSuite.php(746): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#14 /tmp/phan/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(537): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#15 /tmp/phan/vendor/phpunit/phpunit/src/TextUI/Command.php(210): PHPUnit\TextUI\TestRunner->doRun(Object(PHPUnit\Framework\TestSuite), Array, true)
#16 /tmp/phan/vendor/phpunit/phpunit/src/TextUI/Command.php(141): PHPUnit\TextUI\Command->run(Array, true)
#17 /usr/bin/phpunit(52): PHPUnit\TextUI\Command::main()
#18 {main}
@TysonAndre
Copy link
Member

Created mgdm/Mosquitto-PHP#73

@remicollet
Copy link
Contributor Author

Thanks for the quick fix proposal
(you were faster than me... planed to work on it later)

TysonAndre added a commit that referenced this issue Jul 14, 2017
Fixes #1015 : Check for rejected constant names.
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