public function testDeleteThrowException() { $Php = new MockPhp(array('init' => false)); $this->expectException('/Could not start session./'); $Php->delete('whatever'); }
public function testDeleteThrowException() { $php = new MockPhp(array('init' => false)); $this->assertException('/Could not start session./', function () use($php) { $php->delete('whatever'); }); }