Skip to content

Commit 0c97598

Browse files
author
Joan He
committed
MAGETWO-31938: added unit tests
1 parent f4f4cde commit 0c97598

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

dev/tests/unit/testsuite/Magento/Framework/App/AreaTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
namespace Magento\Framework\App;
88

9+
/**
10+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
11+
*/
912
class AreaTest extends \PHPUnit_Framework_TestCase
1013
{
1114
const SCOPE_ID = '1';

dev/tests/unit/testsuite/Magento/Framework/App/Config/Data/ProcessorFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function testGetModelWithCorrectInterface()
5353
/**
5454
* @covers \Magento\Framework\App\Config\Data\ProcessorFactory::get
5555
* @expectedException \InvalidArgumentException
56-
* @expectedExceptionMessage Magento\Framework\App\Config\Data\WrongBackendModel is not instance of \Magento\Framework\App\Config\Data\ProcessorInterface
56+
* @expectedExceptionMessageRegExp /\w+\\WrongBackendModel is not instance of \w+\\ProcessorInterface/
5757
*/
5858
public function testGetModelWithWrongInterface()
5959
{

lib/internal/Magento/Framework/App/Response/Http/FileFactory.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ public function create(
124124

125125
/**
126126
* Call exit
127+
*
128+
* @return void
129+
* @SuppressWarnings(PHPMD.ExitExpression)
127130
*/
128131
protected function callExit()
129132
{

0 commit comments

Comments
 (0)