Changeset 25374
- Timestamp:
- 09/12/2013 04:01:34 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/db.php
r25084 r25374 99 99 $this->assertTrue( isset( $wpdb->dbh ) ); // Test __isset() 100 100 unset( $wpdb->dbh ); 101 $this->assert Null( $wpdb->dbh);101 $this->assertTrue( empty( $wpdb->dbh ) ); 102 102 $wpdb->dbh = $dbh; 103 103 $this->assertNotEmpty( $wpdb->dbh ); … … 110 110 global $wpdb; 111 111 112 $this->assert Null( $wpdb->nonexistent_property);112 $this->assertTrue( empty( $wpdb->nonexistent_property ) ); 113 113 $wpdb->nonexistent_property = true; 114 114 $this->assertTrue( $wpdb->nonexistent_property ); 115 115 $this->assertTrue( isset( $wpdb->nonexistent_property ) ); 116 116 unset( $wpdb->nonexistent_property ); 117 $this->assert Null( $wpdb->nonexistent_property);117 $this->assertTrue( empty( $wpdb->nonexistent_property ) ); 118 118 } 119 119
Note: See TracChangeset
for help on using the changeset viewer.