From 1c77d499ae9085dbd4c1ab010aab881f02ef8a1a Mon Sep 17 00:00:00 2001 From: Hassan Khan Date: Wed, 16 Mar 2016 17:30:31 +0000 Subject: [PATCH] Fix for broken tests --- src/Http/UrlParserTrait.php | 2 +- tests/Container/BuilderTest.php | 30 +++++++++++++++--------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/Http/UrlParserTrait.php b/src/Http/UrlParserTrait.php index 9094209..1e8b3ec 100644 --- a/src/Http/UrlParserTrait.php +++ b/src/Http/UrlParserTrait.php @@ -36,7 +36,7 @@ public function getPath(UriInterface $uri) } /** - * Gets the query parameter from a ``UriInterface`` instance. + * Gets the query parameters as an array from a ``UriInterface`` instance. * * @param UriInterface $uri * @param array $exclude diff --git a/tests/Container/BuilderTest.php b/tests/Container/BuilderTest.php index cdbed36..6840ed2 100644 --- a/tests/Container/BuilderTest.php +++ b/tests/Container/BuilderTest.php @@ -79,11 +79,11 @@ public function testRegisterProviders() $this->assertTrue($container->has(ProviderInterface::class)); $this->assertTrue($container->has(AdapterInterface::class)); - $this->assertTrue($container->has('entity.user')); - $this->assertTrue($container->has('entity.media')); - $this->assertTrue($container->has('entity.comment')); - $this->assertTrue($container->has('entity.like')); - $this->assertTrue($container->has('entity.tag')); + $this->assertTrue($container->has('repo.user')); + $this->assertTrue($container->has('repo.media')); + $this->assertTrue($container->has('repo.comment')); + $this->assertTrue($container->has('repo.like')); + $this->assertTrue($container->has('repo.tag')); } /** @@ -103,11 +103,11 @@ public function testRegisterNoProviders() $this->assertFalse($container->has(ProviderInterface::class)); $this->assertFalse($container->has(AdapterInterface::class)); - $this->assertFalse($container->has('entity.user')); - $this->assertFalse($container->has('entity.media')); - $this->assertFalse($container->has('entity.comment')); - $this->assertFalse($container->has('entity.like')); - $this->assertFalse($container->has('entity.tag')); + $this->assertFalse($container->has('repo.user')); + $this->assertFalse($container->has('repo.media')); + $this->assertFalse($container->has('repo.comment')); + $this->assertFalse($container->has('repo.like')); + $this->assertFalse($container->has('repo.tag')); } /** @@ -129,11 +129,11 @@ public function testRegisterDefaultProviders() $this->assertTrue($container->has(ProviderInterface::class)); $this->assertTrue($container->has(AdapterInterface::class)); - $this->assertTrue($container->has('entity.user')); - $this->assertTrue($container->has('entity.media')); - $this->assertTrue($container->has('entity.comment')); - $this->assertTrue($container->has('entity.like')); - $this->assertTrue($container->has('entity.tag')); + $this->assertTrue($container->has('repo.user')); + $this->assertTrue($container->has('repo.media')); + $this->assertTrue($container->has('repo.comment')); + $this->assertTrue($container->has('repo.like')); + $this->assertTrue($container->has('repo.tag')); } private function createMockProvider($provider)