mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-12 00:59:49 +01:00
19 lines
652 B
PHP
19 lines
652 B
PHP
<?php
|
|
|
|
class PHPParser_Tests_BuilderFactoryTest extends PHPUnit_Framework_TestCase
|
|
{
|
|
public function testCreateClassBuilder() {
|
|
$factory = new PHPParser_BuilderFactory;
|
|
$this->assertInstanceOf('PHPParser_Builder_Class', $factory->class('Test'));
|
|
}
|
|
|
|
public function testCreateMethodBuilder() {
|
|
$factory = new PHPParser_BuilderFactory;
|
|
$this->assertInstanceOf('PHPParser_Builder_Method', $factory->method('test'));
|
|
}
|
|
|
|
public function testCreateParamBuilder() {
|
|
$factory = new PHPParser_BuilderFactory;
|
|
$this->assertInstanceOf('PHPParser_Builder_Param', $factory->param('test'));
|
|
}
|
|
} |