Doctrine\Tests\ODM\PHPCR\Mapping\AbstractMappingDriverTest::testGetAllClassNamesReturnsOnlyTheAppropriateClasses PHP Method

testGetAllClassNamesReturnsOnlyTheAppropriateClasses() public method

    public function testGetAllClassNamesReturnsOnlyTheAppropriateClasses()
    {
        $extraneousClassName = 'Doctrine\\Tests\\Models\\ECommerce\\ECommerceCart';
        $this->ensureIsLoaded($extraneousClassName);
        $driver = $this->loadDriverForTestMappingDocuments();
        $classes = $driver->getAllClassNames();
        $this->assertNotContains($extraneousClassName, $classes);
    }
AbstractMappingDriverTest