示例#1
0
 /**
  * @test
  * @expectedException \Json\Exception\Encoding
  * @expectedExceptionMessage JSON encode failed: Type is not supported (8)
  */
 public function failEncodeFp()
 {
     if (version_compare(PHP_VERSION, '5.5.0', '<')) {
         $this->markTestSkipped('PHP Version < 5.5.0');
     }
     // get a resource variable
     $fp = fopen(__FILE__, "r");
     $ignore = Json::stringify($fp);
 }