Skip to content

Commit a1fd9f9

Browse files
committed
IMPROVED : Unit Tests
1 parent 9f73990 commit a1fd9f9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tests/PhpPowerpoint/Tests/Writer/ODPresentation/AbstractPartTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
*/
3232
class AbstractPartTest extends \PHPUnit_Framework_TestCase
3333
{
34-
protected function runProtectedMethod ($obj, $method, $args = array())
34+
protected function runProtectedMethod($obj, $method, $args = array())
3535
{
3636
$method = new \ReflectionMethod(get_class($obj), $method);
3737
$method->setAccessible(true);

tests/PhpPowerpoint/Tests/Writer/ODPresentation/ContentTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,15 +261,15 @@ public function testRichTextBorder()
261261

262262
public function testRichTextShadow()
263263
{
264-
$randAlpha = rand(0,100);
264+
$randAlpha = rand(0, 100);
265265
$phpPowerPoint = new PhpPowerpoint();
266266
$oSlide = $phpPowerPoint->getActiveSlide();
267267
$oRichText = $oSlide->createRichTextShape();
268268
$oRichText->createTextRun('AAA');
269269
$oRichText->getShadow()->setVisible(true)->setAlpha($randAlpha)->setBlurRadius(2);
270270

271271
$element = '/office:document-content/office:automatic-styles/style:style[@style:name=\'gr1\']/style:graphic-properties';
272-
for ($inc = 0 ; $inc <= 360 ; $inc += 45) {
272+
for ($inc = 0; $inc <= 360; $inc += 45) {
273273
$randDistance = rand(0, 100);
274274
$oRichText->getShadow()->setDirection($inc)->setDistance($randDistance);
275275
$pres = TestHelperDOCX::getDocument($phpPowerPoint, 'ODPresentation');

tests/PhpPowerpoint/Tests/Writer/PowerPoint2007/AbstractPartTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
*/
3131
class AbstractPartTest extends \PHPUnit_Framework_TestCase
3232
{
33-
protected function runProtectedMethod ($obj, $method, $args = array())
33+
protected function runProtectedMethod($obj, $method, $args = array())
3434
{
3535
$method = new \ReflectionMethod(get_class($obj), $method);
3636
$method->setAccessible(true);

0 commit comments

Comments
 (0)