Skip to content

Instantly share code, notes, and snippets.

@nojimage
Created December 18, 2015 01:37
Show Gist options
  • Save nojimage/1abf583e1e677081bc63 to your computer and use it in GitHub Desktop.
Save nojimage/1abf583e1e677081bc63 to your computer and use it in GitHub Desktop.
<?php
class SampleTest extends CakeTestCase
{
public function testSomething()
{
$this->// ここで補完
}
}
@nojimage
Copy link
Author

caketestcase_completion

@nojimage
Copy link
Author

PHPUnit_Framework_Assertに定義されているメソッドが出てこない

@nojimage
Copy link
Author

環境は NetBeans 8.0.2 ですが、7系のころからこの現象には悩んでいたり。

@nojimage
Copy link
Author

PHPUnit_Framework_Assertのメソッドはスタティックで定義されているため、

「オプション」>「エディタ」>「コード補完」>「PHP」>「->の後の静的メソッドも同様」にチェックで補完されるようになる。

https://twitter.com/junichi_11/status/677677315384614914

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