WordPress.org

Make WordPress Core

Changeset 392 in tests


Ignore:
Timestamp:
08/04/2011 05:27:26 PM (7 years ago)
Author:
ryan
Message:

Use assertInstanceOf instead of deprecated assertType

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_includes_class-wp-dependencies.php

    r366 r392  
    88        $this->assertTrue($dep->add( 'two', '' ));
    99
    10         $this->assertType('_WP_Dependency', $dep->query( 'one' ));
    11         $this->assertType('_WP_Dependency', $dep->query( 'two' ));
     10        $this->assertInstanceOf('_WP_Dependency', $dep->query( 'one' ));
     11        $this->assertInstanceOf('_WP_Dependency', $dep->query( 'two' ));
    1212
    1313        //Cannot reuse names
     
    2525       
    2626        $this->assertFalse($dep->query( 'one'));
    27         $this->assertType('_WP_Dependency', $dep->query( 'two' ));
     27        $this->assertInstanceOf('_WP_Dependency', $dep->query( 'two' ));
    2828       
    2929    }
Note: See TracChangeset for help on using the changeset viewer.