Browse Source

add missing parent calls

euromark 12 years ago
parent
commit
9c81130353
56 changed files with 166 additions and 22 deletions
  1. 2 0
      Test/Case/Console/Command/CcShellTest.php
  2. 2 0
      Test/Case/Console/Command/CodeShellTest.php
  3. 2 0
      Test/Case/Console/Command/ConvertShellTest.php
  4. 2 0
      Test/Case/Console/Command/FolderSyncShellTest.php
  5. 2 0
      Test/Case/Console/Command/HashShellTest.php
  6. 2 0
      Test/Case/Console/Command/IndentShellTest.php
  7. 2 0
      Test/Case/Console/Command/IndexShellTest.php
  8. 2 0
      Test/Case/Console/Command/PhpTagShellTest.php
  9. 2 0
      Test/Case/Console/Command/ResetShellTest.php
  10. 2 0
      Test/Case/Console/Command/UserShellTest.php
  11. 2 0
      Test/Case/Console/Command/WhitespaceShellTest.php
  12. 4 0
      Test/Case/Controller/Component/AutoLoginComponentTest.php
  13. 5 1
      Test/Case/Controller/Component/CalendarComponentTest.php
  14. 4 0
      Test/Case/Controller/Component/CommonComponentTest.php
  15. 4 0
      Test/Case/Lib/AuthTest.php
  16. 4 0
      Test/Case/Lib/CaptchaLibTest.php
  17. 1 1
      Test/Case/Lib/EmailLibTest.php
  18. 3 1
      Test/Case/Lib/GeocodeLibTest.php
  19. 4 0
      Test/Case/Lib/GooglLibTest.php
  20. 2 0
      Test/Case/Lib/HazardLibTest.php
  21. 4 0
      Test/Case/Lib/IcalLibTest.php
  22. 5 1
      Test/Case/Lib/ImapLibTest.php
  23. 1 1
      Test/Case/Lib/SpellLibTest.php
  24. 2 0
      Test/Case/Lib/Utility/ChmodLibTest.php
  25. 2 0
      Test/Case/Lib/Utility/FolderLibTest.php
  26. 2 0
      Test/Case/Lib/Utility/NumberLibTest.php
  27. 1 1
      Test/Case/Lib/Utility/TimeLibTest.php
  28. 2 0
      Test/Case/Model/Behavior/BitmaskedBehaviorTest.php
  29. 4 0
      Test/Case/Model/Behavior/CaptchaBehaviorTest.php
  30. 2 0
      Test/Case/Model/Behavior/ConfirmableBehaviorTest.php
  31. 5 1
      Test/Case/Model/Behavior/CustomFindsBehaviorTest.php
  32. 5 1
      Test/Case/Model/Behavior/DecimalInputBehaviorTest.php
  33. 2 0
      Test/Case/Model/Behavior/GeocoderBehaviorTest.php
  34. 5 1
      Test/Case/Model/Behavior/HazardableBehaviorTest.php
  35. 2 0
      Test/Case/Model/Behavior/JsonableBehaviorTest.php
  36. 4 0
      Test/Case/Model/Behavior/LinkableBehaviorTest.php
  37. 2 0
      Test/Case/Model/Behavior/MasterPasswordBehaviorTest.php
  38. 5 1
      Test/Case/Model/Behavior/NumberFormatBehaviorTest.php
  39. 1 1
      Test/Case/Model/Behavior/TypographicBehaviorTest.php
  40. 3 1
      Test/Case/Model/CodeKeyTest.php
  41. 3 1
      Test/Case/Model/ContactFormTest.php
  42. 1 1
      Test/Case/Model/KeyValueTest.php
  43. 3 1
      Test/Case/Model/QloginTest.php
  44. 3 1
      Test/Case/Model/TokenTest.php
  45. 4 0
      Test/Case/View/Helper/CaptchaHelperTest.php
  46. 4 0
      Test/Case/View/Helper/CommonHelperTest.php
  47. 4 0
      Test/Case/View/Helper/DatetimeHelperTest.php
  48. 5 1
      Test/Case/View/Helper/FlattrHelperTest.php
  49. 5 1
      Test/Case/View/Helper/FormExtHelperTest.php
  50. 4 0
      Test/Case/View/Helper/FormatHelperTest.php
  51. 1 1
      Test/Case/View/Helper/GoogleMapV3HelperTest.php
  52. 5 1
      Test/Case/View/Helper/IcalHelperTest.php
  53. 4 0
      Test/Case/View/Helper/NumericHelperTest.php
  54. 4 0
      Test/Case/View/Helper/QrCodeHelperTest.php
  55. 3 1
      Test/Case/View/Helper/TextExtHelperTest.php
  56. 1 1
      Test/Case/View/Helper/TreeHelperTest.php

+ 2 - 0
Test/Case/Console/Command/CcShellTest.php

@@ -8,6 +8,8 @@ class CcShellTest extends MyCakeTestCase {
 	public $CcShell;
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->CcShell = new CcShell();
 	}
 

+ 2 - 0
Test/Case/Console/Command/CodeShellTest.php

@@ -8,6 +8,8 @@ class CodeShellTest extends MyCakeTestCase {
 	public $CodeShell;
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->CodeShell = new CodeShell();
 	}
 

+ 2 - 0
Test/Case/Console/Command/ConvertShellTest.php

@@ -8,6 +8,8 @@ class ConvertShellTest extends MyCakeTestCase {
 	public $ConvertShell;
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->ConvertShell = new ConvertShell();
 	}
 

+ 2 - 0
Test/Case/Console/Command/FolderSyncShellTest.php

@@ -8,6 +8,8 @@ class FolderSyncShellTest extends MyCakeTestCase {
 	public $FolderSyncShell;
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->FolderSyncShell = new FolderSyncShell();
 	}
 

+ 2 - 0
Test/Case/Console/Command/HashShellTest.php

@@ -8,6 +8,8 @@ class HashShellTest extends MyCakeTestCase {
 	public $HashShell;
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->HashShell = new HashShell();
 	}
 

+ 2 - 0
Test/Case/Console/Command/IndentShellTest.php

@@ -8,6 +8,8 @@ class IndentShellTest extends MyCakeTestCase {
 	public $IndentShell;
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->IndentShell = new IndentShell();
 	}
 

+ 2 - 0
Test/Case/Console/Command/IndexShellTest.php

@@ -8,6 +8,8 @@ class IndexShellTest extends MyCakeTestCase {
 	public $IndexShell;
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->IndexShell = new IndexShell();
 	}
 

+ 2 - 0
Test/Case/Console/Command/PhpTagShellTest.php

@@ -8,6 +8,8 @@ class PhpTagShellTest extends MyCakeTestCase {
 	public $PhpTagShell;
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->PhpTagShell = new PhpTagShell();
 	}
 

+ 2 - 0
Test/Case/Console/Command/ResetShellTest.php

@@ -8,6 +8,8 @@ class ResetShellTest extends MyCakeTestCase {
 	public $ResetShell;
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->ResetShell = new ResetShell();
 	}
 

+ 2 - 0
Test/Case/Console/Command/UserShellTest.php

@@ -8,6 +8,8 @@ class UserShellTest extends MyCakeTestCase {
 	public $UserShell;
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->UserShell = new UserShell();
 	}
 

+ 2 - 0
Test/Case/Console/Command/WhitespaceShellTest.php

@@ -8,6 +8,8 @@ class WhitespaceShellTest extends MyCakeTestCase {
 	public $WhitespaceShell;
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->WhitespaceShell = new WhitespaceShell();
 	}
 

+ 4 - 0
Test/Case/Controller/Component/AutoLoginComponentTest.php

@@ -20,6 +20,8 @@ class AutoLoginComponentTest extends CakeTestCase {
 	 * @return void
 	 */
 	public function setUp() {
+		parent::setUp();
+
 		Configure::write('AutoLogin.active', 1);
 		Configure::write('AutoLogin.cookieName', 'autoLogin');
 
@@ -34,6 +36,8 @@ class AutoLoginComponentTest extends CakeTestCase {
 	 * @return void
 	 */
 	public function tearDown() {
+		parent::tearDown();
+
 		unset($this->Controller->AutoLogin);
 		unset($this->Controller);
 	}

+ 5 - 1
Test/Case/Controller/Component/CalendarComponentTest.php

@@ -6,15 +6,19 @@ App::uses('MyCakeTestCase', 'Tools.TestSuite');
 class CalendarComponentTest extends MyCakeTestCase {
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->Calendar = new CalendarComponent(new ComponentCollection());
 	}
 
 	public function tearDown() {
+		parent::tearDown();
+
 
 	}
 
 	public function testObject() {
-		$this->assertTrue(is_a($this->Calendar, 'CalendarComponent'));
+		$this->assertInstanceOf('CalendarComponent', $this->Calendar);
 	}
 
 	public function testX() {

+ 4 - 0
Test/Case/Controller/Component/CommonComponentTest.php

@@ -18,6 +18,8 @@ class CommonComponentTest extends CakeTestCase {
  * @return void
  */
 	public function setUp() {
+		parent::setUp();
+
 		$this->Controller = new CommonComponentTestController(new CakeRequest, new CakeResponse);
 		$this->Controller->constructClasses();
 		$this->Controller->startupProcess();
@@ -30,6 +32,8 @@ class CommonComponentTest extends CakeTestCase {
  * @return void
  */
 	public function tearDown() {
+		parent::tearDown();
+
 		unset($this->Controller->Common);
 		unset($this->Controller);
 	}

+ 4 - 0
Test/Case/Lib/AuthTest.php

@@ -10,12 +10,16 @@ class AuthTest extends MyCakeTestCase {
 	public $fixtures = array('core.session');
 
 	public function setUp() {
+		parent::setUp();
+
 		ClassRegistry::init('Session');
 
 		$this->skipIf(php_sapi_name() === 'cli', 'Cannot test session in CLI');
 	}
 
 	public function tearDown() {
+		parent::tearDown();
+
 		ClassRegistry::flush();
 
 		CakeSession::delete('Auth');

+ 4 - 0
Test/Case/Lib/CaptchaLibTest.php

@@ -10,10 +10,14 @@ App::uses('MyCakeTestCase', 'Tools.TestSuite');
 class CaptchaLibTest extends MyCakeTestCase {
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->Brita = new CaptchaLib();
 	}
 
 	public function tearDown() {
+		parent::tearDown();
+
 		unset($this->Brita);
 	}
 

+ 1 - 1
Test/Case/Lib/EmailLibTest.php

@@ -21,7 +21,7 @@ class EmailLibTest extends MyCakeTestCase {
 
 	public function testObject() {
 		$this->assertTrue(is_object($this->Email));
-		$this->assertTrue(is_a($this->Email, 'EmailLib'));
+		$this->assertInstanceOf('EmailLib', $this->Email);
 ;
 	}
 

+ 3 - 1
Test/Case/Lib/GeocodeLibTest.php

@@ -16,6 +16,8 @@ Configure::write('Google', array(
 class GeocodeLibTest extends MyCakeTestCase {
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->Geocode = new GeocodeLib();
 	}
 
@@ -25,7 +27,7 @@ class GeocodeLibTest extends MyCakeTestCase {
 
 	public function testObject() {
 		$this->assertTrue(is_object($this->Geocode));
-		$this->assertTrue(is_a($this->Geocode, 'GeocodeLib'));
+		$this->assertInstanceOf('GeocodeLib', $this->Geocode);
 	}
 
 	public function testDistance() {

+ 4 - 0
Test/Case/Lib/GooglLibTest.php

@@ -8,12 +8,16 @@ App::uses('GooglLib', 'Tools.Lib');
 class GooglLibTest extends CakeTestCase {
 
 	public function setUp() {
+		parent::setUp();
+
 		//Configure::write('Googl.key', 'YOUR KEY');
 
 		$this->Googl = new GooglLib();
 	}
 
 	public function tearDown() {
+		parent::tearDown();
+
 		unset($this->Googl);
 	}
 

+ 2 - 0
Test/Case/Lib/HazardLibTest.php

@@ -6,6 +6,8 @@ class HazardLibTest extends CakeTestCase {
 
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->HazardLib = new HazardLib();
 	}
 

+ 4 - 0
Test/Case/Lib/IcalLibTest.php

@@ -7,6 +7,8 @@ class IcalLibTest extends CakeTestCase {
 	public $file;
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->Ical = new IcalLib();
 
 		$this->file = CakePlugin::path('Tools').'Test'.DS.'test_files'.DS.'ics'.DS.'basic.ics';
@@ -14,6 +16,8 @@ class IcalLibTest extends CakeTestCase {
 
 
 	public function tearDown() {
+		parent::tearDown();
+
 		unset($this->Ical);
 	}
 

+ 5 - 1
Test/Case/Lib/ImapLibTest.php

@@ -23,6 +23,8 @@ class ImapLibTest extends MyCakeTestCase {
 	public $Imap;
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->skipIf(!function_exists('imap_open'), 'No Imap class installed');
 		$this->skipIf(!Configure::read('Mailbox.DEVTEST'), 'No test account `DEVTEST` available');
 
@@ -32,11 +34,13 @@ class ImapLibTest extends MyCakeTestCase {
 	}
 
 	public function tearDown() {
+		parent::tearDown();
+
 		unset($this->Imap);
 	}
 
 	public function testObject() {
-		$this->assertTrue(is_a($this->Imap, 'ImapLib'));
+		$this->assertInstanceOf('ImapLib', $this->Imap);
 	}
 
 	public function testCount() {

+ 1 - 1
Test/Case/Lib/SpellLibTest.php

@@ -22,7 +22,7 @@ class SpellLibTest extends MyCakeTestCase {
 	}
 
 	public function testObject() {
-		$this->assertTrue(is_a($this->SpellLib, 'SpellLib'));
+		$this->assertInstanceOf('SpellLib', $this->SpellLib);
 	}
 
 	public function testList() {

+ 2 - 0
Test/Case/Lib/Utility/ChmodLibTest.php

@@ -10,6 +10,8 @@ class ChmodLibTest extends CakeTestCase {
 	public $Chmod = null;
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->Chmod = new ChmodLib();
 
 	}

+ 2 - 0
Test/Case/Lib/Utility/FolderLibTest.php

@@ -8,6 +8,8 @@ class FolderLibTest extends MyCakeTestCase {
 	public $FolderLib;
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->FolderLib = new FolderLib();
 	}
 

+ 2 - 0
Test/Case/Lib/Utility/NumberLibTest.php

@@ -8,6 +8,8 @@ class NumberLibTest extends MyCakeTestCase {
 	public $NumberLib = null;
 
 	public function setUp() {
+		parent::setUp();
+
 		//$this->NumberLib = new NumberLib();
 	}
 

+ 1 - 1
Test/Case/Lib/Utility/TimeLibTest.php

@@ -10,7 +10,7 @@ class TimeLibTest extends MyCakeTestCase {
 	public function testObject() {
 		$this->Time = new TimeLib();
 		$this->assertTrue(is_object($this->Time));
-		$this->assertTrue(is_a($this->Time, 'TimeLib'));
+		$this->assertInstanceOf('TimeLib', $this->Time);
 	}
 
 	public function testTimezone() {

+ 2 - 0
Test/Case/Model/Behavior/BitmaskedBehaviorTest.php

@@ -14,6 +14,8 @@ class BitmaskedBehaviorTest extends MyCakeTestCase {
 	public $Comment;
 
 	public function setUp() {
+		parent::setUp();
+
 
 		$this->Comment = new BitmaskedComment();
 		$this->Comment->Behaviors->load('Tools.Bitmasked', array('mappedField'=>'statuses'));

+ 4 - 0
Test/Case/Model/Behavior/CaptchaBehaviorTest.php

@@ -12,11 +12,15 @@ class CaptchaBehaviorTest extends MyCakeTestCase {
 	public $Comment;
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->Comment = ClassRegistry::init('Comment');
 		$this->Comment->Behaviors->load('Tools.Captcha', array());
 	}
 
 	public function tearDown() {
+		parent::tearDown();
+
 		unset($this->Comment);
 	}
 

+ 2 - 0
Test/Case/Model/Behavior/ConfirmableBehaviorTest.php

@@ -9,6 +9,8 @@ class ConfirmableBehaviorTest extends MyCakeTestCase {
 	public $ConfirmableBehavior;
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->ConfirmableBehavior = new ConfirmableBehavior();
 	}
 

+ 5 - 1
Test/Case/Model/Behavior/CustomFindsBehaviorTest.php

@@ -6,6 +6,8 @@ App::uses('MyCakeTestCase', 'Tools.TestSuite');
 class CustomFindsBehaviorTest extends MyCakeTestCase {
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->CustomFinds = new CustomFindsBehavior();
 
 		$this->Model = new CustomFindsTest();
@@ -22,11 +24,13 @@ class CustomFindsBehaviorTest extends MyCakeTestCase {
 	}
 
 	public function tearDown() {
+		parent::tearDown();
+
 
 	}
 
 	public function testObject() {
-		$this->assertTrue(is_a($this->CustomFinds, 'CustomFindsBehavior'));
+		$this->assertInstanceOf('CustomFindsBehavior', $this->CustomFinds);
 	}
 
 	public function testModify() {

+ 5 - 1
Test/Case/Model/Behavior/DecimalInputBehaviorTest.php

@@ -9,17 +9,21 @@ class DecimalInputBehaviorTest extends MyCakeTestCase {
 	public $Model;
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->Model = ClassRegistry::init('PaymentMethod');
 
 		$this->Model->Behaviors->load('Tools.DecimalInput', array('fields'=>array('rel_rate', 'set_rate'), 'output'=>true));
 	}
 
 	public function tearDown() {
+		parent::tearDown();
+
 		unset($this->Model);
 	}
 
 	public function testObject() {
-		$this->assertTrue(is_a($this->Model->Behaviors->DecimalInput, 'DecimalInputBehavior'));
+		$this->assertInstanceOf('DecimalInputBehavior', $this->Model->Behaviors->DecimalInput);
 	}
 
 

+ 2 - 0
Test/Case/Model/Behavior/GeocoderBehaviorTest.php

@@ -11,6 +11,8 @@ class GeocoderBehaviorTest extends CakeTestCase {
 	);
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->Comment = ClassRegistry::init('Comment');
 
 		$this->Comment->Behaviors->load('Tools.Geocoder', array('real'=>false));

+ 5 - 1
Test/Case/Model/Behavior/HazardableBehaviorTest.php

@@ -9,17 +9,21 @@ class HazardableBehaviorTest extends MyCakeTestCase {
 	public $Model;
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->Model = ClassRegistry::init('Comment');
 
 		$this->Model->Behaviors->load('Tools.Hazardable', array());
 	}
 
 	public function tearDown() {
+		parent::tearDown();
+
 		unset($this->Model);
 	}
 
 	public function testObject() {
-		$this->assertTrue(is_a($this->Model->Behaviors->Hazardable, 'HazardableBehavior'));
+		$this->assertInstanceOf('HazardableBehavior', $this->Model->Behaviors->Hazardable);
 	}
 
 	public function testSaveAndFind() {

+ 2 - 0
Test/Case/Model/Behavior/JsonableBehaviorTest.php

@@ -14,6 +14,8 @@ class JsonableBehaviorTest extends MyCakeTestCase {
 	public $Comment;
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->Comment = ClassRegistry::init('JsonableComment');
 		$this->Comment->Behaviors->load('Tools.Jsonable', array());
 	}

+ 4 - 0
Test/Case/Model/Behavior/LinkableBehaviorTest.php

@@ -22,10 +22,14 @@ class LinkableBehaviorTest extends CakeTestCase {
 	public $User;
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->User = ClassRegistry::init('LinkableUser');
 	}
 
 	public function tearDown() {
+		parent::tearDown();
+
 		unset($this->User);
 	}
 

+ 2 - 0
Test/Case/Model/Behavior/MasterPasswordBehaviorTest.php

@@ -11,6 +11,8 @@ class MasterPasswordBehaviorTest extends MyCakeTestCase {
 	public $MasterPasswordBehavior;
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->MasterPasswordBehavior = new MasterPasswordBehavior();
 		$this->Model = ClassRegistry::init('MasterPasswordTestModel');
 	}

+ 5 - 1
Test/Case/Model/Behavior/NumberFormatBehaviorTest.php

@@ -9,17 +9,21 @@ class NumberFormatBehaviorTest extends MyCakeTestCase {
 	public $Model;
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->Model = ClassRegistry::init('PaymentMethod');
 
 		$this->Model->Behaviors->load('Tools.NumberFormat', array('fields'=>array('rel_rate', 'set_rate'), 'output'=>true));
 	}
 
 	public function tearDown() {
+		parent::tearDown();
+
 		unset($this->Model);
 	}
 
 	public function testObject() {
-		$this->assertTrue(is_a($this->Model->Behaviors->NumberFormat, 'NumberFormatBehavior'));
+		$this->assertInstanceOf('NumberFormatBehavior', $this->Model->Behaviors->NumberFormat);
 	}
 
 

+ 1 - 1
Test/Case/Model/Behavior/TypographicBehaviorTest.php

@@ -19,7 +19,7 @@ class TypographicBehaviorTest extends MyCakeTestCase {
 	}
 
 	public function testObject() {
-		$this->assertTrue(is_a($this->Model->Behaviors->Typographic, 'TypographicBehavior'));
+		$this->assertInstanceOf('TypographicBehavior', $this->Model->Behaviors->Typographic);
 	}
 
 

+ 3 - 1
Test/Case/Model/CodeKeyTest.php

@@ -10,11 +10,13 @@ class CodeKeyTest extends MyCakeTestCase {
 	public $fixtures = array('plugin.tools.code_key');
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->CodeKey = ClassRegistry::init('Tools.CodeKey');
 	}
 
 	public function testCodeKeyInstance() {
-		$this->assertTrue(is_a($this->CodeKey, 'CodeKey'));
+		$this->assertInstanceOf('CodeKey', $this->CodeKey);
 	}
 
 

+ 3 - 1
Test/Case/Model/ContactFormTest.php

@@ -7,11 +7,13 @@ class ContactFormTest extends CakeTestCase {
 	//public $fixtures = array('app.code_key');
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->ContactForm = ClassRegistry::init('Tools.ContactForm');
 	}
 
 	public function testContactInstance() {
-		$this->assertTrue(is_a($this->ContactForm, 'ContactForm'));
+		$this->assertInstanceOf('ContactForm', $this->ContactForm);
 	}
 
 

+ 1 - 1
Test/Case/Model/KeyValueTest.php

@@ -40,7 +40,7 @@ class KeyValueTest extends MyCakeTestCase {
 	}
 
 	public function testInstance() {
-		$this->assertTrue(is_a($this->KeyValue, 'KeyValue'));
+		$this->assertInstanceOf('KeyValue', $this->KeyValue);
 	}
 
 }

+ 3 - 1
Test/Case/Model/QloginTest.php

@@ -11,11 +11,13 @@ class QloginTest extends MyCakeTestCase {
 	public $fixtures = array('plugin.tools.code_key');
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->Qlogin = ClassRegistry::init('Tools.Qlogin');
 	}
 
 	public function testQloginInstance() {
-		$this->assertTrue(is_a($this->Qlogin, 'Qlogin'));
+		$this->assertInstanceOf('Qlogin', $this->Qlogin);
 	}
 
 	public function testGenerate() {

+ 3 - 1
Test/Case/Model/TokenTest.php

@@ -10,11 +10,13 @@ class TokenTest extends MyCakeTestCase {
 	public $fixtures = array('plugin.tools.token');
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->Token = ClassRegistry::init('Tools.Token');
 	}
 
 	public function testTokenInstance() {
-		$this->assertTrue(is_a($this->Token, 'Token'));
+		$this->assertInstanceOf('Token', $this->Token);
 	}
 
 

+ 4 - 0
Test/Case/View/Helper/CaptchaHelperTest.php

@@ -11,11 +11,15 @@ App::uses('Controller', 'Controller');
 class CaptchaHelperTest extends CakeTestCase {
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->Captcha = new CaptchaHelper(new View(new Controller(new CakeRequest, new CakeResponse)));
 		$this->Captcha->Html = new HtmlHelper(new View(null));
 	}
 
 	public function tearDown() {
+		parent::tearDown();
+
 		unset($this->Captcha);
 	}
 

+ 4 - 0
Test/Case/View/Helper/CommonHelperTest.php

@@ -12,6 +12,8 @@ class CommonHelperTest extends MyCakeTestCase {
 	public $Common;
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->Common = new CommonHelper(new View(null));
 	}
 
@@ -72,6 +74,8 @@ class CommonHelperTest extends MyCakeTestCase {
  * @return void
  */
 	public function tearDown() {
+		parent::tearDown();
+
 		unset($this->Common);
 	}
 

+ 4 - 0
Test/Case/View/Helper/DatetimeHelperTest.php

@@ -13,6 +13,8 @@ App::uses('View', 'View');
 class DatetimeHelperTest extends MyCakeTestCase {
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->Datetime = new DatetimeHelper(new View(null));
 	}
 
@@ -257,6 +259,8 @@ class DatetimeHelperTest extends MyCakeTestCase {
  * @return void
  */
 	public function tearDown() {
+		parent::tearDown();
+
 		unset($this->Datetime);
 	}
 }

+ 5 - 1
Test/Case/View/Helper/FlattrHelperTest.php

@@ -10,6 +10,8 @@ class FlattrHelperTest extends MyCakeTestCase {
 	public $uid;
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->Flattr = new FlattrHelper(new View(null));
 		$this->Flattr->Html = new HtmlHelper(new View(null));
 
@@ -17,11 +19,13 @@ class FlattrHelperTest extends MyCakeTestCase {
 	}
 
 	public function tearDown() {
+		parent::tearDown();
+
 
 	}
 
 	public function testObject() {
-		$this->assertTrue(is_a($this->Flattr, 'FlattrHelper'));
+		$this->assertInstanceOf('FlattrHelper', $this->Flattr);
 	}
 
 	public function testBadge() {

+ 5 - 1
Test/Case/View/Helper/FormExtHelperTest.php

@@ -7,15 +7,19 @@ App::uses('View', 'View');
 class FormExtHelperTest extends MyCakeTestCase {
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->Form = new FormExtHelper(new View(null));
 	}
 
 	public function tearDown() {
+		parent::tearDown();
+
 
 	}
 
 	public function testObject() {
-		$this->assertTrue(is_a($this->Form, 'FormExtHelper'));
+		$this->assertInstanceOf('FormExtHelper', $this->Form);
 	}
 
 	public function testPostLink() {

+ 4 - 0
Test/Case/View/Helper/FormatHelperTest.php

@@ -19,6 +19,8 @@ class FormatHelperTest extends MyCakeTestCase {
 	* @return void
 	*/
 	public function setUp() {
+		parent::setUp();
+
 		$this->Format = new FormatHelper(new View(null));
 		$this->Format->Html = new HtmlHelper(new View(null));
 	}
@@ -263,6 +265,8 @@ class FormatHelperTest extends MyCakeTestCase {
  * @return void
  */
 	public function tearDown() {
+		parent::tearDown();
+
 		unset($this->Format);
 	}
 }

+ 1 - 1
Test/Case/View/Helper/GoogleMapV3HelperTest.php

@@ -13,7 +13,7 @@ class GoogleMapV3HelperTest extends MyCakeTestCase {
 	}
 
 	public function testObject() {
-		$this->assertTrue(is_a($this->GoogleMapV3, 'GoogleMapV3Helper'));
+		$this->assertInstanceOf('GoogleMapV3Helper', $this->GoogleMapV3);
 	}
 
 	public function testMapUrl() {

+ 5 - 1
Test/Case/View/Helper/IcalHelperTest.php

@@ -20,15 +20,19 @@ class IcalHelperTest extends MyCakeTestCase {
 	public $Ical;
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->Ical = new IcalHelper(new View(null));
 	}
 
 	public function tearDown() {
+		parent::tearDown();
+
 
 	}
 
 	public function testObject() {
-		$this->assertTrue(is_a($this->Ical, 'IcalHelper'));
+		$this->assertInstanceOf('IcalHelper', $this->Ical);
 	}
 
 	public function testAdd() {

+ 4 - 0
Test/Case/View/Helper/NumericHelperTest.php

@@ -17,6 +17,8 @@ class NumericHelperTest extends MyCakeTestCase {
  * @return void
  */
 	public function setUp() {
+		parent::setUp();
+
 		$this->Numeric = new NumericHelper(new View(null));
 	}
 
@@ -85,6 +87,8 @@ class NumericHelperTest extends MyCakeTestCase {
  * @return void
  */
 	public function tearDown() {
+		parent::tearDown();
+
 		unset($this->Numeric);
 	}
 }

+ 4 - 0
Test/Case/View/Helper/QrCodeHelperTest.php

@@ -27,6 +27,8 @@ class QrCodeHelperTest extends MyCakeTestCase {
  * @return void
  */
 	public function setUp() {
+		parent::setUp();
+
 		$this->QrCode = new QrCodeHelper(new View(null));
 		$this->QrCode->Html = new HtmlHelper(new View(null));
 	}
@@ -152,6 +154,8 @@ class QrCodeHelperTest extends MyCakeTestCase {
  * @return void
  */
 	public function tearDown() {
+		parent::tearDown();
+
 		unset($this->QrCode);
 	}
 }

+ 3 - 1
Test/Case/View/Helper/TextExtHelperTest.php

@@ -8,12 +8,14 @@ class TextExtHelperTest extends MyCakeTestCase {
 	public $Text;
 
 	public function setUp() {
+		parent::setUp();
+
 		$this->Text = new TextExtHelper(new View(null));
 	}
 
 
 	public function testObject() {
-		$this->assertTrue(is_a($this->Text, 'TextExtHelper'));
+		$this->assertInstanceOf('TextExtHelper', $this->Text);
 	}
 
 

+ 1 - 1
Test/Case/View/Helper/TreeHelperTest.php

@@ -58,7 +58,7 @@ class TreeHelperTest extends MyCakeTestCase {
 	}
 
 	public function testObject() {
-		$this->assertTrue(is_a($this->Tree, 'TreeHelper'));
+		$this->assertInstanceOf('TreeHelper', $this->Tree);
 	}
 
 	public function testGenerate() {