invoke(null); $this->assertEquals(preg_match('##', $span, $res), 1); //$const = $this->getConst(); $this->assertTrue(in_array($res[1], $const)); $toto = $method->invoke(null, ['element' => 'toto']); $this->assertEquals(preg_match('##', $toto, $res), 1); $this->assertTrue(in_array($res[1], $const)); } public function iconsProvider() { $reflection = new ReflectionClass('tao_helpers_Icon'); $methods = []; foreach ($reflection->getMethods() as $method) { if ($method->isPublic()) { $methods[] = [$method,array_values($reflection->getConstants())]; } } return $methods; } }