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

No auto-completion for PHPUnit #1249

Closed
Defman21 opened this Issue Apr 13, 2016 · 13 comments

Comments

Projects
None yet
3 participants
@Defman21
Contributor

Defman21 commented Apr 13, 2016

Short Summary

There's no auto-completion for PHPUnit. Maybe Komodo should have some sort of an API catalog for it?

Platform Information

Komodo Edit or IDE? IDE
Komodo Version? 10 alpha
Operating System (and version)? Ubuntu 16.04

@Naatan

This comment has been minimized.

Member

Naatan commented Apr 13, 2016

If you add PHPUnit to your path you would get autocompletion for it.

It does make sense to have a catalog for this though, thanks for the suggestion!

@Naatan Naatan added this to the Backlog milestone Apr 13, 2016

@Defman21

This comment has been minimized.

Contributor

Defman21 commented Apr 13, 2016

I have phpunit.phar in my $PATH and in my include_path ini setting but I don't see any auto-completions for it.

@Naatan

This comment has been minimized.

Member

Naatan commented Apr 13, 2016

I think .phar is compressed somehow? It should be in a flat file format.

@mitchell-as

This comment has been minimized.

Member

mitchell-as commented Apr 13, 2016

I had to use the actual PHPUnit source in standard format.

@Defman21

This comment has been minimized.

Contributor

Defman21 commented Apr 13, 2016

phar is an executable php archive (whatever it means), I can see its contents (valid PHP contains a lot of requirements and classes)

@mitchell-as

This comment has been minimized.

Member

mitchell-as commented Apr 13, 2016

Well at >2MB codeintel certainly wouldn't scan it. I cannot see us supporting scanning of phar archives anyway due to their size.

@Defman21

This comment has been minimized.

Contributor

Defman21 commented Apr 13, 2016

So I need to download PHPUnit source and add it as an external directory for scanning for auto-completions?

@Naatan

This comment has been minimized.

Member

Naatan commented Apr 13, 2016

Yes, if you want them before completion of this ticket that is what you would have to do.

@Defman21

This comment has been minimized.

Contributor

Defman21 commented Apr 13, 2016

Well I can't add any Import Directories because of #1251 :(

@Naatan

This comment has been minimized.

Member

Naatan commented Apr 13, 2016

Ok well that bug is being tracked so ..

@mitchell-as

This comment has been minimized.

Member

mitchell-as commented Sep 21, 2016

Note to self: running ci2 scan -fpnr /path/to/phpunit/src > /tmp/foo.cix, and then importing the /tmp/foo.cix catalog does not work when trying the PHPUnit sample

<?php
use PHPUnit\Framework\TestCase;

class MoneyTest extends TestCase {
    public function testFoo() {
        // Assert
        $this->assert

The use PHPUnit\ declaration does not work, causing the assert* to not work either.

@mitchell-as

This comment has been minimized.

Member

mitchell-as commented Sep 23, 2016

Note: I was using it wrong in my above comment. It's supposed to be class MoneyTest extends PHPUnit_Framework_TestCase {. Then the assert completions started showing.

@Defman21

This comment has been minimized.

Contributor

Defman21 commented Sep 23, 2016

Thanks for that, Mitchell!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment