PHPStan Level 3
This commit is contained in:
1 parent
64a09a748d
commit
e95e0eeefd
34 files changed
+122
-88
No files matched your search
@@ -21,10 +21,10 @@ class StyleManagerTest extends TestCase
|
||||
$workbookRelationshipsManager = $this->createMock(WorkbookRelationshipsManager::class);
|
||||
$workbookRelationshipsManager->method('hasStylesXMLFile')->willReturn(true);
|
||||
|
||||
/** @var StyleManager $styleManager */
|
||||
/** @var StyleManager|\PHPUnit\Framework\MockObject\MockObject $styleManager */
|
||||
$styleManager = $this->getMockBuilder('\Box\Spout\Reader\XLSX\Manager\StyleManager')
|
||||
->setConstructorArgs(['/path/to/file.xlsx', $workbookRelationshipsManager, $entityFactory])
|
||||
->setMethods(['getCustomNumberFormats', 'getStylesAttributes'])
|
||||
->onlyMethods(['getCustomNumberFormats', 'getStylesAttributes'])
|
||||
->getMock();
|
||||
|
||||
$styleManager->method('getStylesAttributes')->willReturn($styleAttributes);
|
||||
|
||||
Reference in new issue
Block a user