Use the `PHPUnit\Framework\TestCase` notation instead of `PHPUnit_Framework_TestCase` while extending our TestCases. This will help us migrate to PHPUnit 6, that [no longer support snake case class names](https://github.com/sebastianbergmann/phpunit/blob/master/ChangeLog-6.0.md#changed-1).
		
			
				
	
	
		
			27 lines
		
	
	
		
			795 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			795 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace PhpOffice\PhpSpreadsheetTests\Style;
 | 
						|
 | 
						|
use PhpOffice\PhpSpreadsheet\Spreadsheet;
 | 
						|
use PhpOffice\PhpSpreadsheet\Style\Border;
 | 
						|
use PHPUnit\Framework\TestCase;
 | 
						|
 | 
						|
class BorderTest extends TestCase
 | 
						|
{
 | 
						|
    public function testCase()
 | 
						|
    {
 | 
						|
        $spreadsheet = new Spreadsheet();
 | 
						|
        $borders = $spreadsheet->getActiveSheet()->getStyle('A1')->getBorders();
 | 
						|
        $allBorders = $borders->getAllBorders();
 | 
						|
        $bottom = $borders->getBottom();
 | 
						|
 | 
						|
        $actual = $bottom->getBorderStyle();
 | 
						|
        self::assertSame(Border::BORDER_NONE, $actual, 'should default to none');
 | 
						|
 | 
						|
        $allBorders->setBorderStyle(Border::BORDER_THIN);
 | 
						|
 | 
						|
        $actual = $bottom->getBorderStyle();
 | 
						|
        self::assertSame(Border::BORDER_THIN, $actual, 'should have been set via allBorders');
 | 
						|
    }
 | 
						|
}
 |