/** * セットアップ * * @return void **/ public function setUp() { $this->manager = new ImageManager(); $this->S3 = $this->getMock('Midnight\\Aws\\S3', array('upload')); $this->S3->expects($this->any())->method('upload')->will($this->returnValue(true)); }