greg0ire 8 лет назад
Родитель
Сommit
d449d5c725

+ 0 - 1
Security/Acl/Permission/AdminPermissionMap.php

@@ -40,7 +40,6 @@ class AdminPermissionMap implements PermissionMapInterface
      * @var array
      */
     private $map = array(
-
         self::PERMISSION_VIEW => array(
             MaskBuilder::MASK_VIEW,
             MaskBuilder::MASK_LIST,

+ 26 - 26
Tests/Admin/AdminTest.php

@@ -44,7 +44,7 @@ class AdminTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @covers Sonata\AdminBundle\Admin\AbstractAdmin::__construct
+     * @covers \Sonata\AdminBundle\Admin\AbstractAdmin::__construct
      */
     public function testConstructor()
     {
@@ -225,12 +225,12 @@ class AdminTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @covers Sonata\AdminBundle\Admin\AbstractAdmin::hasChild
-     * @covers Sonata\AdminBundle\Admin\AbstractAdmin::addChild
-     * @covers Sonata\AdminBundle\Admin\AbstractAdmin::getChild
-     * @covers Sonata\AdminBundle\Admin\AbstractAdmin::isChild
-     * @covers Sonata\AdminBundle\Admin\AbstractAdmin::hasChildren
-     * @covers Sonata\AdminBundle\Admin\AbstractAdmin::getChildren
+     * @covers \Sonata\AdminBundle\Admin\AbstractAdmin::hasChild
+     * @covers \Sonata\AdminBundle\Admin\AbstractAdmin::addChild
+     * @covers \Sonata\AdminBundle\Admin\AbstractAdmin::getChild
+     * @covers \Sonata\AdminBundle\Admin\AbstractAdmin::isChild
+     * @covers \Sonata\AdminBundle\Admin\AbstractAdmin::hasChildren
+     * @covers \Sonata\AdminBundle\Admin\AbstractAdmin::getChildren
      */
     public function testChildren()
     {
@@ -254,7 +254,7 @@ class AdminTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @covers Sonata\AdminBundle\Admin\AbstractAdmin::configure
+     * @covers \Sonata\AdminBundle\Admin\AbstractAdmin::configure
      */
     public function testConfigure()
     {
@@ -385,7 +385,7 @@ class AdminTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @expectedException RuntimeException
+     * @expectedException \RuntimeException
      */
     public function testGetBaseRoutePatternWithUnreconizedClassname()
     {
@@ -556,8 +556,8 @@ class AdminTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @covers Sonata\AdminBundle\Admin\AbstractAdmin::setUniqid
-     * @covers Sonata\AdminBundle\Admin\AbstractAdmin::getUniqid
+     * @covers \Sonata\AdminBundle\Admin\AbstractAdmin::setUniqid
+     * @covers \Sonata\AdminBundle\Admin\AbstractAdmin::getUniqid
      */
     public function testUniqid()
     {
@@ -599,14 +599,14 @@ class AdminTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @covers Sonata\AdminBundle\Admin\AbstractAdmin::getSubClasses
-     * @covers Sonata\AdminBundle\Admin\AbstractAdmin::getSubClass
-     * @covers Sonata\AdminBundle\Admin\AbstractAdmin::setSubClasses
-     * @covers Sonata\AdminBundle\Admin\AbstractAdmin::hasSubClass
-     * @covers Sonata\AdminBundle\Admin\AbstractAdmin::hasActiveSubClass
-     * @covers Sonata\AdminBundle\Admin\AbstractAdmin::getActiveSubClass
-     * @covers Sonata\AdminBundle\Admin\AbstractAdmin::getActiveSubclassCode
-     * @covers Sonata\AdminBundle\Admin\AbstractAdmin::getClass
+     * @covers \Sonata\AdminBundle\Admin\AbstractAdmin::getSubClasses
+     * @covers \Sonata\AdminBundle\Admin\AbstractAdmin::getSubClass
+     * @covers \Sonata\AdminBundle\Admin\AbstractAdmin::setSubClasses
+     * @covers \Sonata\AdminBundle\Admin\AbstractAdmin::hasSubClass
+     * @covers \Sonata\AdminBundle\Admin\AbstractAdmin::hasActiveSubClass
+     * @covers \Sonata\AdminBundle\Admin\AbstractAdmin::getActiveSubClass
+     * @covers \Sonata\AdminBundle\Admin\AbstractAdmin::getActiveSubclassCode
+     * @covers \Sonata\AdminBundle\Admin\AbstractAdmin::getClass
      */
     public function testSubClass()
     {
@@ -681,7 +681,7 @@ class AdminTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @covers Sonata\AdminBundle\Admin\AbstractAdmin::hasActiveSubClass
+     * @covers \Sonata\AdminBundle\Admin\AbstractAdmin::hasActiveSubClass
      */
     public function testOnlyOneSubclassNeededToBeActive()
     {
@@ -1624,7 +1624,7 @@ class AdminTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @covers Sonata\AdminBundle\Admin\AbstractAdmin::configureActionButtons
+     * @covers \Sonata\AdminBundle\Admin\AbstractAdmin::configureActionButtons
      */
     public function testGetActionButtonsList()
     {
@@ -1658,7 +1658,7 @@ class AdminTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @covers Sonata\AdminBundle\Admin\AbstractAdmin::configureActionButtons
+     * @covers \Sonata\AdminBundle\Admin\AbstractAdmin::configureActionButtons
      */
     public function testGetActionButtonsListCreateDisabled()
     {
@@ -1676,7 +1676,7 @@ class AdminTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @covers Sonata\AdminBundle\Admin\AbstractAdmin::configureBatchActions
+     * @covers \Sonata\AdminBundle\Admin\AbstractAdmin::configureBatchActions
      */
     public function getBatchActions()
     {
@@ -1697,7 +1697,7 @@ class AdminTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @covers Sonata\AdminBundle\Admin\AbstractAdmin::showMosaicButton
+     * @covers \Sonata\AdminBundle\Admin\AbstractAdmin::showMosaicButton
      */
     public function testShowMosaicButton()
     {
@@ -1710,7 +1710,7 @@ class AdminTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @covers Sonata\AdminBundle\Admin\AbstractAdmin::showMosaicButton
+     * @covers \Sonata\AdminBundle\Admin\AbstractAdmin::showMosaicButton
      */
     public function testShowMosaicButtonHideMosaic()
     {
@@ -1724,7 +1724,7 @@ class AdminTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @covers Sonata\AdminBundle\Admin\AbstractAdmin::getDashboardActions
+     * @covers \Sonata\AdminBundle\Admin\AbstractAdmin::getDashboardActions
      * @dataProvider provideGetBaseRouteName
      */
     public function testDefaultDashboardActionsArePresent($objFqn, $expected)

+ 2 - 2
Tests/Admin/BaseFieldDescriptionTest.php

@@ -146,7 +146,7 @@ class BaseFieldDescriptionTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @expectedException Sonata\AdminBundle\Exception\NoValueException
+     * @expectedException \Sonata\AdminBundle\Exception\NoValueException
      */
     public function testGetValueNoValueException()
     {
@@ -166,7 +166,7 @@ class BaseFieldDescriptionTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @expectedException RuntimeException
+     * @expectedException \RuntimeException
      */
     public function testExceptionOnNonArrayOption()
     {

+ 2 - 2
Tests/Admin/FieldDescriptionCollectionTest.php

@@ -48,7 +48,7 @@ class FieldDescriptionCollectionTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @expectedException        InvalidArgumentException
+     * @expectedException        \InvalidArgumentException
      * @expectedExceptionMessage Element "foo" does not exist.
      */
     public function testNonExistentField()
@@ -58,7 +58,7 @@ class FieldDescriptionCollectionTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @expectedException        RuntimeException
+     * @expectedException        \RuntimeException
      * @expectedExceptionMessage Cannot set value, use add
      */
     public function testArrayAccessSetField()

+ 2 - 2
Tests/DependencyInjection/Compiler/AddDependencyCallsCompilerPassTest.php

@@ -55,7 +55,7 @@ class AddDependencyCallsCompilerPassTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @covers Sonata\AdminBundle\DependencyInjection\Compiler\AddDependencyCallsCompilerPass::process
+     * @covers \Sonata\AdminBundle\DependencyInjection\Compiler\AddDependencyCallsCompilerPass::process
      */
     public function testProcessParsingFullValidConfig()
     {
@@ -115,7 +115,7 @@ class AddDependencyCallsCompilerPassTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @covers Sonata\AdminBundle\DependencyInjection\Compiler\AddDependencyCallsCompilerPass::process
+     * @covers \Sonata\AdminBundle\DependencyInjection\Compiler\AddDependencyCallsCompilerPass::process
      */
     public function testProcessResultingConfig()
     {

+ 6 - 6
Tests/DependencyInjection/Compiler/ExtensionCompilerPassTest.php

@@ -55,7 +55,7 @@ class ExtensionCompilerPassTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @covers Sonata\AdminBundle\DependencyInjection\SonataAdminExtension::load
+     * @covers \Sonata\AdminBundle\DependencyInjection\SonataAdminExtension::load
      */
     public function testAdminExtensionLoad()
     {
@@ -73,7 +73,7 @@ class ExtensionCompilerPassTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @covers Sonata\AdminBundle\DependencyInjection\Compiler\ExtensionCompilerPass::flattenExtensionConfiguration
+     * @covers \Sonata\AdminBundle\DependencyInjection\Compiler\ExtensionCompilerPass::flattenExtensionConfiguration
      */
     public function testFlattenEmptyExtensionConfiguration()
     {
@@ -103,7 +103,7 @@ class ExtensionCompilerPassTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @covers Sonata\AdminBundle\DependencyInjection\Compiler\ExtensionCompilerPass::flattenExtensionConfiguration
+     * @covers \Sonata\AdminBundle\DependencyInjection\Compiler\ExtensionCompilerPass::flattenExtensionConfiguration
      */
     public function testFlattenExtensionConfiguration()
     {
@@ -177,7 +177,7 @@ class ExtensionCompilerPassTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @covers Sonata\AdminBundle\DependencyInjection\Compiler\ExtensionCompilerPass::process
+     * @covers \Sonata\AdminBundle\DependencyInjection\Compiler\ExtensionCompilerPass::process
      * @expectedException \InvalidArgumentException
      */
     public function testProcessWithInvalidExtensionId()
@@ -200,7 +200,7 @@ class ExtensionCompilerPassTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @covers Sonata\AdminBundle\DependencyInjection\Compiler\ExtensionCompilerPass::process
+     * @covers \Sonata\AdminBundle\DependencyInjection\Compiler\ExtensionCompilerPass::process
      */
     public function testProcessWithInvalidAdminId()
     {
@@ -224,7 +224,7 @@ class ExtensionCompilerPassTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @covers Sonata\AdminBundle\DependencyInjection\Compiler\ExtensionCompilerPass::process
+     * @covers \Sonata\AdminBundle\DependencyInjection\Compiler\ExtensionCompilerPass::process
      */
     public function testProcess()
     {

+ 1 - 1
Tests/Export/ExporterTest.php

@@ -20,7 +20,7 @@ use Sonata\AdminBundle\Export\Exporter;
 class ExporterTest extends \PHPUnit_Framework_TestCase
 {
     /**
-     * @expectedException RuntimeException
+     * @expectedException \RuntimeException
      */
     public function testFilter()
     {

+ 1 - 1
Tests/Filter/FilterTest.php

@@ -101,7 +101,7 @@ class FilterTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @expectedException RuntimeException
+     * @expectedException \RuntimeException
      */
     public function testExceptionOnNonDefinedFieldName()
     {

+ 6 - 6
Tests/Form/FormMapperTest.php

@@ -268,7 +268,7 @@ class FormMapperTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @expectedException        RuntimeException
+     * @expectedException        \RuntimeException
      * @expectedExceptionMessage Cannot nest ifTrue or ifFalse call
      */
     public function testIfTrueNested()
@@ -278,7 +278,7 @@ class FormMapperTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @expectedException        RuntimeException
+     * @expectedException        \RuntimeException
      * @expectedExceptionMessage Cannot nest ifTrue or ifFalse call
      */
     public function testIfFalseNested()
@@ -288,7 +288,7 @@ class FormMapperTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @expectedException        RuntimeException
+     * @expectedException        \RuntimeException
      * @expectedExceptionMessage Cannot nest ifTrue or ifFalse call
      */
     public function testIfCombinationNested()
@@ -298,7 +298,7 @@ class FormMapperTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @expectedException        RuntimeException
+     * @expectedException        \RuntimeException
      * @expectedExceptionMessage Cannot nest ifTrue or ifFalse call
      */
     public function testIfFalseCombinationNested2()
@@ -308,7 +308,7 @@ class FormMapperTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @expectedException        RuntimeException
+     * @expectedException        \RuntimeException
      * @expectedExceptionMessage Cannot nest ifTrue or ifFalse call
      */
     public function testIfFalseCombinationNested3()
@@ -318,7 +318,7 @@ class FormMapperTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @expectedException        RuntimeException
+     * @expectedException        \RuntimeException
      * @expectedExceptionMessage Cannot nest ifTrue or ifFalse call
      */
     public function testIfFalseCombinationNested4()

+ 4 - 4
Tests/Mapper/BaseGroupedMapperTest.php

@@ -103,7 +103,7 @@ class BaseGroupedMapperTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @expectedException        RuntimeException
+     * @expectedException        \RuntimeException
      * @expectedExceptionMessage You should close previous group "fooGroup1" with end() before adding new tab "fooGroup2".
      */
     public function testGroupNotClosedException()
@@ -113,7 +113,7 @@ class BaseGroupedMapperTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @expectedException        RuntimeException
+     * @expectedException        \RuntimeException
      * @expectedExceptionMessage New tab was added automatically when you have added field or group. You should close current tab before adding new one OR add tabs before adding groups and fields.
      */
     public function testGroupInTabException()
@@ -123,7 +123,7 @@ class BaseGroupedMapperTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @expectedException        RuntimeException
+     * @expectedException        \RuntimeException
      * @expectedExceptionMessage You should close previous tab "fooTab" with end() before adding new tab "barTab".
      */
     public function testTabInTabException()
@@ -144,7 +144,7 @@ class BaseGroupedMapperTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @expectedException        RuntimeException
+     * @expectedException        \RuntimeException
      * @expectedExceptionMessage No open tabs or groups, you cannot use end()
      */
     public function testEndException()

+ 1 - 1
Tests/Security/Handler/AclSecurityHandlerTest.php

@@ -111,7 +111,7 @@ class AclSecurityHandlerTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @expectedException RuntimeException
+     * @expectedException \RuntimeException
      */
     public function testWithNonAuthenticationCredentialsNotFoundException()
     {

+ 6 - 6
Tests/Show/ShowMapperTest.php

@@ -252,7 +252,7 @@ class ShowMapperTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @expectedException        RuntimeException
+     * @expectedException        \RuntimeException
      * @expectedExceptionMessage Cannot nest ifTrue or ifFalse call
      */
     public function testIfTrueNested()
@@ -262,7 +262,7 @@ class ShowMapperTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @expectedException        RuntimeException
+     * @expectedException        \RuntimeException
      * @expectedExceptionMessage Cannot nest ifTrue or ifFalse call
      */
     public function testIfFalseNested()
@@ -272,7 +272,7 @@ class ShowMapperTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @expectedException        RuntimeException
+     * @expectedException        \RuntimeException
      * @expectedExceptionMessage Cannot nest ifTrue or ifFalse call
      */
     public function testIfCombinationNested()
@@ -282,7 +282,7 @@ class ShowMapperTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @expectedException        RuntimeException
+     * @expectedException        \RuntimeException
      * @expectedExceptionMessage Cannot nest ifTrue or ifFalse call
      */
     public function testIfFalseCombinationNested2()
@@ -292,7 +292,7 @@ class ShowMapperTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @expectedException        RuntimeException
+     * @expectedException        \RuntimeException
      * @expectedExceptionMessage Cannot nest ifTrue or ifFalse call
      */
     public function testIfFalseCombinationNested3()
@@ -302,7 +302,7 @@ class ShowMapperTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @expectedException        RuntimeException
+     * @expectedException        \RuntimeException
      * @expectedExceptionMessage Cannot nest ifTrue or ifFalse call
      */
     public function testIfFalseCombinationNested4()