diff --git a/tests/MethodTest.php b/tests/MethodTest.php index 98010b0f3..0bc595ea4 100644 --- a/tests/MethodTest.php +++ b/tests/MethodTest.php @@ -5,7 +5,6 @@ namespace Barryvdh\LaravelIdeHelper\Tests; use Barryvdh\LaravelIdeHelper\Method; -use Illuminate\Database\Eloquent\Builder; use PHPUnit\Framework\TestCase; class MethodTest extends TestCase @@ -53,36 +52,6 @@ public function testOutput() $this->assertTrue($method->shouldReturn()); } - /** - * Test the output of a class - */ - public function testEloquentBuilderOutput() - { - $reflectionClass = new \ReflectionClass(Builder::class); - $reflectionMethod = $reflectionClass->getMethod('with'); - - $method = new Method($reflectionMethod, 'Builder', $reflectionClass); - - $output = <<<'DOC' -/** - * Set the relationships that should be eager loaded. - * - * @param string|array $relations - * @param string|\Closure|null $callback - * @return \Illuminate\Database\Eloquent\Builder|static - * @static - */ -DOC; - $this->assertSame($output, $method->getDocComment('')); - $this->assertSame('with', $method->getName()); - $this->assertSame('\\' . Builder::class, $method->getDeclaringClass()); - $this->assertSame('$relations, $callback', $method->getParams(true)); - $this->assertSame(['$relations', '$callback'], $method->getParams(false)); - $this->assertSame('$relations, $callback = null', $method->getParamsWithDefault(true)); - $this->assertSame(['$relations', '$callback = null'], $method->getParamsWithDefault(false)); - $this->assertTrue($method->shouldReturn()); - } - /** * Test special characters in methods default values */