setWidth() public method

Ignores setting the width, preserving the default behavior.
public setWidth ( integer $pValue ) : self
$pValue integer
return self
コード例 #1
0
ファイル: GroupTest.php プロジェクト: hxsam/PHPPresentation
 public function testConstruct()
 {
     $object = new Group();
     $this->assertEquals(0, $object->getOffsetX());
     $this->assertEquals(0, $object->getOffsetY());
     $this->assertEquals(0, $object->getExtentX());
     $this->assertEquals(0, $object->getExtentY());
     $this->assertEquals(0, $object->getShapeCollection()->count());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Group', $object->setWidth(rand(1, 100)));
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Group', $object->setHeight(rand(1, 100)));
 }