ソースを参照

[ZF-7528]Line endings in Zend/Pdf

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@17454 44c647ce-9c0f-0410-b52a-842ac1e357ba
yoshida@zend.co.jp 16 年 前
コミット
5e4d0a1b22
2 ファイル変更18 行追加18 行削除
  1. 16 16
      tests/Zend/Pdf/ActionTest.php
  2. 2 2
      tests/Zend/Pdf/DestinationTest.php

+ 16 - 16
tests/Zend/Pdf/ActionTest.php

@@ -36,12 +36,12 @@ class Zend_Pdf_ActionTest extends PHPUnit_Framework_TestCase
         date_default_timezone_set('GMT');
     }
 
-	public function testLoad()
+    public function testLoad()
     {
-    	$dictionary = new Zend_Pdf_Element_Dictionary();
-    	$dictionary->Type = new Zend_Pdf_Element_Name('Action');
-    	$dictionary->S    = new Zend_Pdf_Element_Name('GoTo');
-    	$dictionary->D    = new Zend_Pdf_Element_String('SomeNamedDestination');
+        $dictionary = new Zend_Pdf_Element_Dictionary();
+        $dictionary->Type = new Zend_Pdf_Element_Name('Action');
+        $dictionary->S    = new Zend_Pdf_Element_Name('GoTo');
+        $dictionary->D    = new Zend_Pdf_Element_String('SomeNamedDestination');
 
         $action2Dictionary = new Zend_Pdf_Element_Dictionary();
         $action2Dictionary->Type = new Zend_Pdf_Element_Name('Action');
@@ -150,11 +150,11 @@ class Zend_Pdf_ActionTest extends PHPUnit_Framework_TestCase
         $iterator = new RecursiveIteratorIterator(new Zend_Pdf_RecursivelyIteratableObjectsContainer(array($action)),
                                                   RecursiveIteratorIterator::SELF_FIRST);
         foreach ($iterator as $chainedAction) {
-        	$actionsCount++;
+            $actionsCount++;
         }
 
         $this->assertEquals(20, $actionsCount);
-    }
+    }
 
     public function testExtract()
     {
@@ -297,23 +297,23 @@ class Zend_Pdf_ActionTest extends PHPUnit_Framework_TestCase
 
     public function testCreate()
     {
-    	$action1 = Zend_Pdf_Action_GoTo::create('SomeNamedDestination');
-    	$action1->next[] = Zend_Pdf_Action_GoTo::create('AnotherNamedDestination');
+        $action1 = Zend_Pdf_Action_GoTo::create('SomeNamedDestination');
+        $action1->next[] = Zend_Pdf_Action_GoTo::create('AnotherNamedDestination');
 
         $action1->dumpAction(new Zend_Pdf_ElementFactory(1));
 
-    	$this->assertEquals($action1->getResource()->toString(),
-    	                    '<</Type /Action /S /GoTo /D (SomeNamedDestination) /Next 1 0 R >>');
+        $this->assertEquals($action1->getResource()->toString(),
+                            '<</Type /Action /S /GoTo /D (SomeNamedDestination) /Next 1 0 R >>');
     }
 
     public function testCreate1()
     {
-    	$pdf = new Zend_Pdf();
-    	$page1 = $pdf->newPage(Zend_Pdf_Page::SIZE_A4);
-    	$page2 = $pdf->newPage(Zend_Pdf_Page::SIZE_A4);
+        $pdf = new Zend_Pdf();
+        $page1 = $pdf->newPage(Zend_Pdf_Page::SIZE_A4);
+        $page2 = $pdf->newPage(Zend_Pdf_Page::SIZE_A4);
 
-    	require_once 'Zend/Pdf/Destination/Fit.php';
-    	$destination = Zend_Pdf_Destination_Fit::create($page2);
+        require_once 'Zend/Pdf/Destination/Fit.php';
+        $destination = Zend_Pdf_Destination_Fit::create($page2);
 
         $action = Zend_Pdf_Action_GoTo::create($destination);
 

+ 2 - 2
tests/Zend/Pdf/DestinationTest.php

@@ -30,7 +30,7 @@ class Zend_Pdf_DestinationTest extends PHPUnit_Framework_TestCase
         date_default_timezone_set('GMT');
     }
 
-	public function testLoad()
+    public function testLoad()
     {
         $pdf = new Zend_Pdf();
         $page1 = $pdf->newPage(Zend_Pdf_Page::SIZE_A4);
@@ -134,7 +134,7 @@ class Zend_Pdf_DestinationTest extends PHPUnit_Framework_TestCase
 
         $this->assertTrue($destination instanceof Zend_Pdf_Destination_FitBoundingBoxVertically);
         $this->assertEquals($destination->getResource()->toString(), '[4 0 R /FitBV 0 ]');
-    }
+    }
 
     public function testGettersSetters()
     {