- protected $config = array('ping.ping' => 10,
- 'ping.event' => 300);
-
- /**
- * Sets up the fixture, for example, opens a network connection.
- * This method is called before a test is executed.
- */
- protected function setUp()
- {
- $this->setPlugin(new Phergie_Plugin_Ping);
- }
-
- /**
- * Test the lastEvent setter and getter
- */
- public function testSetGetLastEvent()
- {
- $expected = rand(100000,200000);
- $this->plugin->setLastEvent($expected);
- $this->assertEquals($expected,
- $this->plugin->getLastEvent(),
- 'Assert that the last event was set and gotten ' .
- 'correctly');
- }
-