 aef4d711f5
			
		
	
	
		aef4d711f5
		
			
		
	
	
	
	
		
			
			Because even if it doesn't make a difference in practice, it is technically more correct to call static methods statically. It also better advertise that those methods can be used from any context.
		
			
				
	
	
		
			31 lines
		
	
	
		
			758 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			758 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace PhpOffice\PhpSpreadsheetTests\Chart;
 | |
| 
 | |
| use PhpOffice\PhpSpreadsheet\Chart\Layout;
 | |
| use PHPUnit_Framework_TestCase;
 | |
| 
 | |
| class LayoutTest extends PHPUnit_Framework_TestCase
 | |
| {
 | |
|     public function testSetLayoutTarget()
 | |
|     {
 | |
|         $LayoutTargetValue = 'String';
 | |
| 
 | |
|         $testInstance = new Layout();
 | |
| 
 | |
|         $result = $testInstance->setLayoutTarget($LayoutTargetValue);
 | |
|         self::assertTrue($result instanceof Layout);
 | |
|     }
 | |
| 
 | |
|     public function testGetLayoutTarget()
 | |
|     {
 | |
|         $LayoutTargetValue = 'String';
 | |
| 
 | |
|         $testInstance = new Layout();
 | |
|         $setValue = $testInstance->setLayoutTarget($LayoutTargetValue);
 | |
| 
 | |
|         $result = $testInstance->getLayoutTarget();
 | |
|         self::assertEquals($LayoutTargetValue, $result);
 | |
|     }
 | |
| }
 |