@@ -495,7 +495,7 @@ public function testHeaders() {
495
495
$ this ->assertSame ($ this ->CakeEmail ->getHeaders (array ('from ' => true , 'to ' => true )), $ expected );
496
496
497
497
$ result = $ this ->CakeEmail ->setHeaders (array ());
498
- $ this ->assertIsA ( $ result , 'CakeEmail ' );
498
+ $ this ->assertInstanceOf ( 'CakeEmail ' , $ result );
499
499
}
500
500
501
501
/**
@@ -616,7 +616,7 @@ public function testTransport() {
616
616
$ this ->assertSame ($ this ->CakeEmail ->transport (), 'Debug ' );
617
617
618
618
$ result = $ this ->CakeEmail ->transportClass ();
619
- $ this ->assertIsA ( $ result , 'DebugTransport ' );
619
+ $ this ->assertInstanceOf ( 'DebugTransport ' , $ result );
620
620
621
621
$ this ->setExpectedException ('SocketException ' );
622
622
$ this ->CakeEmail ->transport ('Invalid ' );
@@ -674,7 +674,7 @@ public function testConfigString() {
674
674
$ this ->assertEquals ($ configs ->test ['transport ' ], $ result );
675
675
676
676
$ result = $ this ->CakeEmail ->transportClass ();
677
- $ this ->assertIsA ( $ result , 'DebugTransport ' );
677
+ $ this ->assertInstanceOf ( 'DebugTransport ' , $ result );
678
678
}
679
679
/**
680
680
* testSendWithContent method
@@ -879,7 +879,7 @@ public function testSendRenderWithHelpers() {
879
879
$ this ->CakeEmail ->viewVars (array ('time ' => $ timestamp ));
880
880
881
881
$ result = $ this ->CakeEmail ->helpers (array ('Time ' ));
882
- $ this ->assertIsA ( $ result , 'CakeEmail ' );
882
+ $ this ->assertInstanceOf ( 'CakeEmail ' , $ result );
883
883
884
884
$ result = $ this ->CakeEmail ->send ();
885
885
$ this ->assertTrue ((bool )strpos ($ result ['message ' ], 'Right now: ' . date ('Y-m-d\TH:i:s\Z ' , $ timestamp )));
@@ -1001,7 +1001,7 @@ public function testSendAttachment() {
1001
1001
*/
1002
1002
public function testDeliver () {
1003
1003
$ instance = CakeEmail::deliver ('all@cakephp.org ' , 'About ' , 'Everything ok ' , array ('from ' => 'root@cakephp.org ' ), false );
1004
- $ this ->assertIsA ( $ instance , 'CakeEmail ' );
1004
+ $ this ->assertInstanceOf ( 'CakeEmail ' , $ instance );
1005
1005
$ this ->assertSame ($ instance ->to (), array ('all@cakephp.org ' => 'all@cakephp.org ' ));
1006
1006
$ this ->assertSame ($ instance ->subject (), 'About ' );
1007
1007
$ this ->assertSame ($ instance ->from (), array ('root@cakephp.org ' => 'root@cakephp.org ' ));
@@ -1223,7 +1223,7 @@ public function testViewRender() {
1223
1223
$ this ->assertEquals ('View ' , $ result );
1224
1224
1225
1225
$ result = $ this ->CakeEmail ->viewRender ('Theme ' );
1226
- $ this ->assertIsA ( $ result , 'CakeEmail ' );
1226
+ $ this ->assertInstanceOf ( 'CakeEmail ' , $ result );
1227
1227
1228
1228
$ result = $ this ->CakeEmail ->viewRender ();
1229
1229
$ this ->assertEquals ('Theme ' , $ result );
@@ -1239,7 +1239,7 @@ public function testEmailFormat() {
1239
1239
$ this ->assertEquals ('text ' , $ result );
1240
1240
1241
1241
$ result = $ this ->CakeEmail ->emailFormat ('html ' );
1242
- $ this ->assertIsA ( $ result , 'CakeEmail ' );
1242
+ $ this ->assertInstanceOf ( 'CakeEmail ' , $ result );
1243
1243
1244
1244
$ result = $ this ->CakeEmail ->emailFormat ();
1245
1245
$ this ->assertEquals ('html ' , $ result );
0 commit comments