| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 6 | public function TestPluginActivationDeactivation( AcceptanceTester $I ) { |
||
| 7 | |||
| 8 | $I->wantTo( 'See if WP PHP Console is listed in the Plugins page.' ); |
||
| 9 | |||
| 10 | $I->loginAsAdmin(); |
||
| 11 | $I->amOnPluginsPage(); |
||
| 12 | |||
| 13 | $I->seePluginInstalled( 'wp-php-console' ); |
||
| 14 | |||
| 15 | $I->wantTo( 'Deactivate and reactivate WP PHP Console.' ); |
||
| 16 | |||
| 17 | $I->deactivatePlugin( 'wp-php-console' ); |
||
| 18 | $I->seePluginDeactivated( 'wp-php-console' ); |
||
| 19 | $I->activatePlugin( 'wp-php-console' ); |
||
| 20 | $I->seePluginActivated( 'wp-php-console' ); |
||
| 21 | } |
||
| 22 | |||
| 25 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.