Skip to content

Commit

Permalink
assert getClassNamespace returns empty string for classes in root nam…
Browse files Browse the repository at this point in the history
…espace
  • Loading branch information
BreiteSeite committed Jun 11, 2016
1 parent 5d53ebb commit 81f7771
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -20,7 +20,6 @@
namespace Doctrine\Tests\Common\Persistence\Mapping;

use Doctrine\Common\Persistence\Mapping\StaticReflectionService;
use Doctrine\Tests\Common\Persistence\Mapping;

/**
* @group DCOM-93
Expand All @@ -44,7 +43,8 @@ public function testShortname()

public function testClassNamespaceName()
{
$this->assertEquals(Mapping::class, $this->reflectionService->getClassNamespace(__CLASS__));
$this->assertEquals('', $this->reflectionService->getClassNamespace(\stdClass::class));
$this->assertEquals(__NAMESPACE__, $this->reflectionService->getClassNamespace(__CLASS__));
}

public function testGetParentClasses()
Expand Down

0 comments on commit 81f7771

Please sign in to comment.