Skip to content

Commit

Permalink
MAGETWO-31938: added unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Joan He committed Jan 26, 2015
1 parent f4f4cde commit 0c97598
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions dev/tests/unit/testsuite/Magento/Framework/App/AreaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

namespace Magento\Framework\App;

/**
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class AreaTest extends \PHPUnit_Framework_TestCase
{
const SCOPE_ID = '1';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function testGetModelWithCorrectInterface()
/**
* @covers \Magento\Framework\App\Config\Data\ProcessorFactory::get
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage Magento\Framework\App\Config\Data\WrongBackendModel is not instance of \Magento\Framework\App\Config\Data\ProcessorInterface
* @expectedExceptionMessageRegExp /\w+\\WrongBackendModel is not instance of \w+\\ProcessorInterface/
*/
public function testGetModelWithWrongInterface()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ public function create(

/**
* Call exit
*
* @return void
* @SuppressWarnings(PHPMD.ExitExpression)
*/
protected function callExit()
{
Expand Down

0 comments on commit 0c97598

Please sign in to comment.