コード例 #1
0
 function testRaiseExceptionWhenNoFileNameIsSpecified()
 {
     $file = new File();
     $this->setExpectedException('Asar\\File\\Exception', "File::getResource failed. The file object does not have a file name.");
     $file->save();
 }