WP File Manager
Current Path:
/
home
/
itutorethiopia
/
public_html
/
vendor
/
nikic
/
php-parser
/
test
/
PhpParser
/
Node
/
Name
Action
..
IdentifierTest.php
Edit
NameTest.php
Edit
Scalar
Stmt
Editing: IdentifierTest.php
<?php declare(strict_types=1); namespace PhpParser\Node; use PHPUnit\Framework\TestCase; class IdentifierTest extends TestCase { public function testToString() { $identifier = new Identifier('Foo'); $this->assertSame('Foo', (string) $identifier); $this->assertSame('Foo', $identifier->toString()); $this->assertSame('foo', $identifier->toLowerString()); } /** @dataProvider provideTestIsSpecialClassName */ public function testIsSpecialClassName($identifier, $expected) { $identifier = new Identifier($identifier); $this->assertSame($expected, $identifier->isSpecialClassName()); } public function provideTestIsSpecialClassName() { return [ ['self', true], ['PARENT', true], ['Static', true], ['other', false], ]; } }