Файл: gapps/vendor/nikic/php-parser/test/PhpParser/Node/Scalar/MagicConstTest.php
Строк: 34
<?php
namespace PhpParserNodeScalar;
class MagicConstTest extends PHPUnit_Framework_TestCase {
/**
* @dataProvider provideTestGetName
*/
public function testGetName(MagicConst $magicConst, $name) {
$this->assertSame($name, $magicConst->getName());
}
public function provideTestGetName() {
return array(
array(new MagicConstClass_, '__CLASS__'),
array(new MagicConstDir, '__DIR__'),
array(new MagicConstFile, '__FILE__'),
array(new MagicConstFunction_, '__FUNCTION__'),
array(new MagicConstLine, '__LINE__'),
array(new MagicConstMethod, '__METHOD__'),
array(new MagicConstNamespace_, '__NAMESPACE__'),
array(new MagicConstTrait_, '__TRAIT__'),
);
}
}