Esempio n. 1
0
 public function testReadThrowException()
 {
     $Php = new MockPhp(array('init' => false));
     $this->expectException('/Could not start session./');
     $Php->read('whatever');
 }
Esempio n. 2
0
 public function testReadThrowException()
 {
     $php = new MockPhp(array('init' => false));
     $this->assertException('/Could not start session./', function () use($php) {
         $php->read('whatever');
     });
 }