| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- /**
- * This file is part of PHPPresentation - A pure PHP library for reading and writing
- * presentations documents.
- *
- * PHPPresentation is free software distributed under the terms of the GNU Lesser
- * General Public License version 3 as published by the Free Software Foundation.
- *
- * For the full copyright and license information, please read the LICENSE
- * file that was distributed with this source code. For the full list of
- * contributors, visit https://github.com/PHPOffice/PHPPresentation/contributors.
- *
- * @copyright 2009-2015 PHPPresentation contributors
- * @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
- * @link https://github.com/PHPOffice/PHPPresentation
- */
- namespace PhpOffice\PhpPresentation\Tests\Shape;
- use PhpOffice\PhpPresentation\Shape\Line;
- use PhpOffice\PhpPresentation\Style\Border;
- /**
- * Test class for memory drawing element
- *
- * @coversDefaultClass PhpOffice\PhpPresentation\Shape\Line
- */
- class LineTest extends \PHPUnit_Framework_TestCase
- {
- /**
- * Test can read
- */
- public function testConstruct()
- {
- $value = rand(1, 100);
- $object = new Line($value, $value, $value, $value);
- $this->assertEquals(Border::LINE_SINGLE, $object->getBorder()->getLineStyle());
- $this->assertEquals($value, $object->getOffsetX());
- $this->assertEquals($value, $object->getOffsetY());
- $this->assertEquals(0, $object->getWidth());
- $this->assertEquals(0, $object->getHeight());
- $this->assertInternalType('string', $object->getHashCode());
- }
- }
|