public function testObject() { $snippet = $this->snippetFromMethod(Bucket::class, 'object'); $snippet->addLocal('bucket', $this->bucket); $res = $snippet->invoke('object'); $this->assertInstanceOf(StorageObject::class, $res->returnVal()); }