Файл: gapps/vendor/nikic/php-parser/test/PhpParser/Node/Stmt/InterfaceTest.php
Строк: 30
<?php
namespace PhpParserNodeStmt;
use PhpParserNode;
class InterfaceTest extends PHPUnit_Framework_TestCase
{
public function testGetMethods() {
$methods = array(
new ClassMethod('foo'),
new ClassMethod('bar'),
);
$interface = new Class_('Foo', array(
'stmts' => array(
new NodeStmtClassConst(array(new NodeConst_('C1', new NodeScalarString_('C1')))),
$methods[0],
new NodeStmtClassConst(array(new NodeConst_('C2', new NodeScalarString_('C2')))),
$methods[1],
new NodeStmtClassConst(array(new NodeConst_('C3', new NodeScalarString_('C3')))),
)
));
$this->assertSame($methods, $interface->getMethods());
}
}