1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-14 02:17:31 +01:00
PHP-Parser/test/PHPParser/Tests/BuilderFactoryTest.php

14 lines
464 B
PHP
Raw Normal View History

2012-03-10 17:56:56 +01:00
<?php
class PHPParser_Tests_BuilderFactoryTest extends PHPUnit_Framework_TestCase
{
public function testCreateClassBuilder() {
$factory = new PHPParser_BuilderFactory;
2012-03-10 23:25:26 +01:00
$this->assertInstanceOf('PHPParser_Builder_Class', $factory->class('Test'));
}
2012-03-10 17:56:56 +01:00
2012-03-10 23:25:26 +01:00
public function testCreateMethodBuilder() {
$factory = new PHPParser_BuilderFactory;
$this->assertInstanceOf('PHPParser_Builder_Method', $factory->method('test'));
2012-03-10 17:56:56 +01:00
}
}