{"action":"closed","issue":{"url":"https://api.github.com/repos/Haehnchen/idea-php-symfony2-plugin/issues/538","labels_url":"https://api.github.com/repos/Haehnchen/idea-php-symfony2-plugin/issues/538/labels{/name}","comments_url":"https://api.github.com/repos/Haehnchen/idea-php-symfony2-plugin/issues/538/comments","events_url":"https://api.github.com/repos/Haehnchen/idea-php-symfony2-plugin/issues/538/events","html_url":"https://github.com/Haehnchen/idea-php-symfony2-plugin/issues/538","id":92717436,"number":538,"title":"Twig test not discovered","user":{"login":"kristoftorfs","id":8181149,"avatar_url":"https://avatars.githubusercontent.com/u/8181149?v=3","gravatar_id":"","url":"https://api.github.com/users/kristoftorfs","html_url":"https://github.com/kristoftorfs","followers_url":"https://api.github.com/users/kristoftorfs/followers","following_url":"https://api.github.com/users/kristoftorfs/following{/other_user}","gists_url":"https://api.github.com/users/kristoftorfs/gists{/gist_id}","starred_url":"https://api.github.com/users/kristoftorfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kristoftorfs/subscriptions","organizations_url":"https://api.github.com/users/kristoftorfs/orgs","repos_url":"https://api.github.com/users/kristoftorfs/repos","events_url":"https://api.github.com/users/kristoftorfs/events{/privacy}","received_events_url":"https://api.github.com/users/kristoftorfs/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Haehnchen/idea-php-symfony2-plugin/labels/wontfix","name":"wontfix","color":"ffffff"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-02T19:38:36Z","updated_at":"2015-08-23T09:03:04Z","closed_at":"2015-08-23T09:03:04Z","body":"When using the code below the autocompletion does not discover the \"sample\" test for Twig.\r\n\r\nExtension.php:\r\n```php\r\nclass Extension extends Twig_Extension {\r\n    ...\r\n    public function getTests() {\r\n        return [new SampleTest()];\r\n    }\r\n    ...\r\n}\r\n```\r\n\r\nSampleTest.php:\r\n```php\r\nclass SampleTest extends Twig_SimpleTest {\r\n    public function __construct() {\r\n        parent::__construct('sample', [$this, 'test']);\r\n    }\r\n    public function test($var) {\r\n        return true;\r\n    }\r\n}\r\n```"}}