Skip to content

Commit 3f80869

Browse files
author
Alexander Paliarush
committed
MAGETWO-31934: Extend Code Generator with Interface Generation Capabilities
1 parent 4a9c1c0 commit 3f80869

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

dev/tests/unit/testsuite/Magento/Framework/Code/Generator/InterfaceGeneratorTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,10 @@ public function testGenerate($additionalMethodsData, $expectedException, $expect
8989
$expectedInterface = file_get_contents(
9090
__DIR__ . '/../_files/app/code/Magento/SomeModule/Model/SevenInterface.php'
9191
);
92-
$this->assertEquals(
92+
93+
$this->assertStringEndsWith(
94+
$generatedInterface,
9395
$expectedInterface,
94-
"<?php\n" . $generatedInterface,
9596
"Interface was generated incorrectly."
9697
);
9798
}

dev/tests/unit/testsuite/Magento/Framework/Code/_files/app/code/Magento/SomeModule/Model/SevenInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
<?php
2+
/**
3+
* Copyright © 2015 Magento. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
26
namespace Magento\SomeModule\Model;
37

48
use Magento\SomeModule\Model\Two\Test as TestTwo;

0 commit comments

Comments
 (0)